How to get out of "sudo -s" command in Terminal?
Solution 1:
Press Ctrl+D will log you out of Super User and return you to normal user status. Alternatively, you can type exit
Solution 2:
Type exit
then you will log off to normal user. Then type exit
again to close the terminal or just close it with the mouse.
Solution 3:
If you're not doing anything important in the terminal, you can actually just click Close Terminal on the Close this terminal? ("Closing the terminal will kill it") dialog box.
This will send SIGHUP
to the running shell, which will then quit, just like it would if you used the exit
command or Ctrl+D (also good ways).