LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   aliases (https://www.linuxquestions.org/questions/linux-server-73/aliases-596048/)

deep 10-31-2007 06:31 AM

aliases
 
how do i exit from vi/etc/aliases and save the aliases file??

puntjuh 10-31-2007 07:04 AM

When you edit a file using vi, you can save it by doing :wq!

which does: write (meaning save) & quit.

Make sure not to be on insert mode when doing it , otherwise :wq! will be added to your file.

farslayer 10-31-2007 07:13 AM

<esc>:wq

vi Editor Cheat Sheet

Graphicsl vi-vim Cheat sheet and tutorial


All times are GMT -5. The time now is 09:04 PM.