As already answered hosts is just a text file so you can use any text editor. Since it exists in /etc and you cannot edit as general user you need to use sudo. The graphical frontend to sudo is gksu. So basically doing gksu YOUR_GRAPHICAL_EDITOR /etc/hosts will do it OR you can use terminal with nano and vim. I recommend nano as it is quite easy.
sudo nano /etc/hosts
In order to ease the command you can use alias.
So edit your .bashrc file in your $HOME. i.e.
In your terminal do:
nano .bashrc
Add
alias edithosts='gksu YOUR_GRAPHICAL_EDITOR /etc/hosts' OR 'sudo nano/vim/vi /etc/hosts'
and save it with Ctrl+x. And do source ~/.bashrc. Then you can use edithosts from commandline to use it.
try one from electron apps - it has GUI, but need some manipulation with node.js installation - githab README.md has detailed info.
https://electron.atom.io/apps/?q=hosts
As already answered
hosts
is just a text file so you can use any text editor. Since it exists in/etc
and you cannot edit as general user you need to usesudo
. The graphical frontend tosudo
isgksu
. So basically doing gksu YOUR_GRAPHICAL_EDITOR /etc/hosts will do it OR you can use terminal with nano and vim. I recommend nano as it is quite easy.sudo nano /etc/hosts
In order to ease the command you can use
alias
.So edit your
.bashrc
file in your $HOME. i.e. In your terminal do:Add
and save it with Ctrl+x. And do
source ~/.bashrc
. Then you can useedithosts
from commandline to use it.If you use unity you may use quicklist as well What Custom Launchers and Unity Quicklists are available?
sagarchalise's answer is great, I also discovered gnome-network-admin which includes a pretty nice interface to edit hosts
It's not a special editor as such, but you could always Alt+F2
gksudo gedit /etc/hosts
.try one from electron apps - it has GUI, but need some manipulation with node.js installation - githab README.md has detailed info. https://electron.atom.io/apps/?q=hosts
Install this addon in firefox >>HostADmin 1.3.6 It is awesome !!!