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/hoststhat is cuz you are missing ansin front ofudo? when using command line use command line tools.vi,vim,nanoand not gedit. Using GUI from commandline can alter file properties that should not be changed. – Rinzwind Jul 27 '21 at 19:27sudo nano /etc/hostsshould work. so shouldsudo vi /etc/hostsunless you did something that got /etc/hosts removed. doesls -l /etc/hostsshow the file? – Rinzwind Jul 27 '21 at 19:28geditis the gnome editor; Lubuntu doesn't use GNOME so the LXQt equivalent would be to replacegeditwithfeatherpad.. but it's not your only option and a GUI editor withsudois 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