Editing files as the root user is potentially dangerous, and may break your system in bad ways. Take great care when editing files as the root user.
To edit files as the root user, launch gedit from the terminal by entering:
Using the sudo command, you will need to successfully enter your password before gedit will open.
As an alternative to the sudo command, you may obtain administrative privileges by entering:
You would then launch gedit using the gedit command.
Once you have opened gedit with administrative privileges, gedit will keep those privileges until you close it.
This work is licensed under a.
Got a comment? Spotted an error? Found the instructions unclear? Send feedback about this page.