Edit file as root using gedit in Ubuntu

Often we see file as readonly if you are not allowed to edit it. Then we need to open it as sudo ( or root) user

The simple command to open any file using root , in graphical editor (e.g gedit) can be

# sudo gedit filename

This will open file in edit mode and as a root you can edit this. Once you are done click save and close the gedit window.

Done :)

No comments:

Post a Comment

Please share your views and comments below.

Thank You.