Search This Blog

Sunday, July 31, 2011

Create and edit text files

To create file
#touch filename

#vi filename

i = to enter edit mode
esc = to move to out of edit mode
dd = to delete line
yy = to copy line
p = to paste
:wq = save and quit

No comments: