Posted By

davidrinnan on 03/18/10


Tagged

edit insert save open files vi


Versions (?)

Edit system files with vi in terminal


 / Published in: Bash
 

  1. sudo vi filename
  2.  
  3. to edit:
  4. :a
  5.  
  6. to leave edit/insert mode
  7. ESC
  8.  
  9. to save on the same file name:
  10. :w
  11.  
  12. to quit:
  13. :quit or :quit!

Report this snippet  

You need to login to post a comment.