Tuesday, 17 April 2012

VI **********VI**********

cheat
set file format, number lines, search

if the script/file has been written on a windows machine (notepad etc) and it wont run on unix / esx then the format needs to be changed
vi filename
:set fileformat=unix

want to see line numbers in vi
vi filename
:set number
remove numbers
:set nonumber

search in vi
search forward /
search back ?
repeat search n
repeat search back N

No comments:

Post a Comment