when i go into a file like visudo and i edit what i want. how do i exit out i have looked at some tutorials about you have to hit exit then ::wq but when i hit exit i am still in edit mode can someone help?
P.S. this i a linux server using ubuntu.
Stupid yet simple question
-
skaaterdd
- New to forums

- Posts: 5
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Fri Jun 05, 2015 12:31 pm
Re: Stupid yet simple question
After you finish editing, try hitting escape to exit editing mode, then type :wq and hit enter to save and exit.
Re: Stupid yet simple question
didnt work i just get an error saying unkown command.
please help,
thanks,
joe
please help,
thanks,
joe
- Vanderburg
- Former staff

- Posts: 1253
- Joined: Sat Nov 13, 2010 7:27 am
- Location: Dallas, TX
Re: Stupid yet simple question
Have you tried simply using nano? Then you can use CTRL+X, then "y" and enter to save and exit.