Home > Archive > Linux/Unix > June 2002 > save configuration files





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author save configuration files
jolanwong

2002-06-11, 3:15 am

I know vi is to edit the file, but I don't know how to save changes by command. Should I key command or just press hot key?

I want to edit some configuration files, but I wouldn't like to do it directly under linux server. Can I transfer the specified files from the linux server to windows machine?

Please advise what to install on both linux server and windows machine?
dpx

2002-06-11, 4:26 am

when you open text with vi you are in execute mode
to make changes to the text press i once now you are in insert mode
to exit insert mode press ESC once now you are back in execute mode
to wright the changes press :w
and to exit press :q
for more help read the man pages for vi


the easy way to change the file is directly on the machine itself
make a copy of the file before that
The VMS Kid

2002-06-11, 7:11 am

Open config file-> vi file.config
Enter text-> i
Save changes-> :x (saves and quits) or :w (saves and doesn't quit) or :wq (also saves and quits)
Exit without saving-> :q!

Make a backup copy of your config files before messing with them. If you haveftpd or sshd running, you can get the files from your server, edit them locally and then put them back on your server. Use ascii mode for transfer.
Boulware5

2002-06-11, 10:14 am

Samba should allow you to share those config files between a Windows and *nix machine.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net