1

I am following the steps of oracle installation in this site http://meandmyubuntulinux.blogspot.ca/2012/05/installing-oracle-11g-r2-express.html.

I don't know how to save the file.

Typing a command like command sudo vim /sbin/chkconfig is opening a nano text editor. So how to save that file?

2

You are opening the file with vim, not with nano. After editing the file press escape to exit the Insert-Mode. Then try :wq to write an exit the editor.

  • what's the difference between the two commands we each offered? Just out of curiosity – danielcooperxyz Mar 12 '13 at 15:43
  • 1
    There is no difference between :wq and :x. The result is the same. I'm just used to use :wq. – prophecy201 Mar 12 '13 at 15:46
  • Fair enough, likewise I'm used to using :x Thank you for the reply :) – danielcooperxyz Mar 12 '13 at 15:49
1

By typing vim you have opened it in Vim not nano as your question states, nano is slightly more user friendly than vi editors, I've found.

However, you can save files in vim using :x, if you're in "Insert" mode you will have to press Esc first.

  • thanks it works for me.but what mean the encrypt key? – Praneeth Pj Mar 12 '13 at 15:43
  • That's if you use :X not :x. The difference is the case. If you use capital X it will encrypt the file, with the password you enter. In this case I presume you want small x which will save and close the editor. – danielcooperxyz Mar 12 '13 at 15:45
  • You should mark one as an answer, even though they're the same. – danielcooperxyz Mar 12 '13 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.