Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Mike Niedzwiedz on March 16, 2001, 07:20:15 PM

Title: Save files via ' vi ' and telnet
Post by: Mike Niedzwiedz on March 16, 2001, 07:20:15 PM
Hello i am trying to edit  config.php  useing the vi command via telnet, can someone tell me how to save the file after modifying it???  thanks  im learning..
Title: Re: Save files via ' vi ' and telnet
Post by: Rob thomson on March 16, 2001, 10:45:11 PM
Try this,

After you've made your modifications

press [escape] to go to command mode
then  ":x"  followed by Return

That should save and exit vi.

Regards
Rob
Title: Re: Save files via ' vi ' and telnet
Post by: Charlie Brady on March 16, 2001, 11:10:05 PM
Mike Niedzwiedz wrote:

> Hello i am trying to edit  config.php  useing the vi command
> via telnet

Try using "pico" instead. There's a nice little "cheat sheet" down the bottom of the screen.

Charlie
Title: Re: Save files via ' vi ' and telnet
Post by: david on March 19, 2001, 06:08:32 AM
in vi

esc to exit insert mode
:w to write changes
:q to exit
:q! to exit and discard changes