Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => General Networking Support in Linux => Topic started by: engineerjude on June 03, 2004, 12:34:11 PM
-
Dear Linux friends.
Please help me out. I have been facing problems with internet sharing in Linux. I used redhat ver9. After inserting scripts for internet sharing, what command can I apply to save the inserted scripts through vi /etc/rc.local
Pls help.
-
ah..
This is already discussed a lot.. anyway..
to edit a file you have to do ..
vi <path to file with name of file>
Then to do editing.. press "insert" then u will be able to edit or type new content in that file then. to save first press "Esc" to come out from edit mode . Then give command to save it. vi require u to press ":" to give give any command so to save do..
:save "filename with path"
to exit..
:q
-
I couldn't understand the reply yu gave me concerning saving commands or scripts
-
When you finish editing a file, press "esc" then press ":save <path to file > "
after that press ":q" to exit.
BTW.. r u sure wht i m understanding is wht you want to know ?