Normally I get a access denied even after I change it's permission to 777.
I see many solutions
Use gedit, dunno how to get use or find whatever that is.
Other solutions use the terminal sudo -i gedit /etc/hosts Sure but I don't know how to save a file from the terminal, CTRL+D does nothing.
Try sudo nano /etc/hosts I get: No such file or directory
Try the this program: hostsed but it is also denied me to save.
So how do I edit and save my hosts file?
u do nano /etc/hosts
that is cuz you are missing ans
in front ofudo
? when using command line use command line tools.vi
,vim
,nano
and not gedit. Using GUI from commandline can alter file properties that should not be changed. – Rinzwind Jul 27 '21 at 19:27sudo nano /etc/hosts
should work. so shouldsudo vi /etc/hosts
unless you did something that got /etc/hosts removed. doesls -l /etc/hosts
show the file? – Rinzwind Jul 27 '21 at 19:28gedit
is the gnome editor; Lubuntu doesn't use GNOME so the LXQt equivalent would be to replacegedit
withfeatherpad
.. but it's not your only option and a GUI editor withsudo
is not ideal. I'd usevim
(Lubuntu also includes) but it's a lousy choice for people who aren't familiar with unix. – guiverc Jul 27 '21 at 22:32