where to save in VI
Hi
I'm trying to save my "/etc/fstab" file in VI, and i don't know where to type the "save and exit" command. I can't see anyplace to do this in the command mode. What's the secret?:confused: |
the ":" character switches to command mode
(if it doesn't work press "ESC" and then ":" ) use ":set showmode" to get a visual feedback for your current mode |
You can not write to that file. Only root or su can. To write in vi you type :w . Hit ESC to get out of editing mode.
|
Check out gvim. It's vi, but MUCH better... it's probably already installed. It has icon button and menu pull-down capabilities.
|
All times are GMT -5. The time now is 04:16 PM. |