vim root permission :w !sudo tee %
/etc consists of all configurations files so to edit the files under /etc you need the superuser permissions but sometime we forget to use sudo. but at that time we can also use:w !sudo tee %
then enter your administrator password
:q!
to exit successfully
Comments
Post a Comment