[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] (no subject)
>how do you edit a file in telnet? I tried using pico but it doesn't work.
I use vi filename. Like any other program editor vi uses its own set of
special keys to perform useful operations. I would recommend buying a
unix book to refere to, but you can delete a character by typing 'x'
and you can enter insert mode by typeing 'i' to exit insert mode type
'esc' and to save the file type 'esc' to turn off insert mode then 'ZZ'
Note: Remember to type su - before editing system files.
ESC Terminate insert mode
cc Change line
dd Delete current line
i Insert before cursor
I Insert at beginning of line
o Open a line below cursor
O Open a line above cursor
r x Replace character with x
u Undo last change
U Restore current line.
x Delete current cursor position
X Delete back one character
ZZ Quit vi, writing the file only if changes were made!
Bill