Ubuntu – how to save sudo vim /sbin/chkconfig

command linevim

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?

Best Answer

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.