Edit system files with vi in terminal


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.