sudo gedit or gksudo gedit
For example, a lot of guides (including the first book ever published about Ubuntu) will ask you to type this sort of command:
sudo gedit /etc/apt/sources.list
the author of this post will always recommend, however, that people use instead this sort of command:
gksudo gedit /etc/apt/sources.list
This is also recommended and included in the Ubuntu community documents
To gain superuser powers for a graphical program for such as
1 gedityou should not use
1 sudo. Example of a incorrect command:
1 sudo gedit
For Ubuntu you should instead use
1 gksudo. Example:
1 gksudo gedit
I find ”
1 | gksu |
is a frontend to
1 | su |
and
1 | gksudo |
is a frontend to
1 | sudo |
. Their primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using
1 | su |
directly”.
Reference:
1. http://tinyurl.com/d35hwm

