November 22, 2024, 11:44:20 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Saving scripts command  (Read 6223 times)

Offline engineerjude

  • Linux Noob !
  • *
  • Posts: 21
Saving scripts command
« 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.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Saving scripts command
« Reply #1 on: June 03, 2004, 02:35:57 PM »
ah..
This is already discussed a lot.. anyway..
to edit a file you have to do ..
Code: [Select]
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

Offline engineerjude

  • Linux Noob !
  • *
  • Posts: 21
Saving scripts command
« Reply #2 on: June 19, 2004, 07:50:49 PM »
I couldn't understand the reply yu gave me concerning saving commands or scripts

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Saving scripts command
« Reply #3 on: June 20, 2004, 04:02:49 AM »
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 ?