command not working please help me

Posted August 3, 2014 2.4k views

sir i am trying to go through this command /usr/sbin/visudo its ok 1st time
but after saving it esc ctrl zz button to save its chowing
[+1] stopped /usr/sbin/visudo

why its stooped after saving it please help

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

On CentOS visudo uses the Vim text editor to edit your sudoers file and check its syntax. Running CTRL-Z suspends Vim. Running the command fg will bring it back to the foreground. To quit, type :wq Check out this Vim cheat cheat for more info.