Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I entered sudo bash and I can't get back to the normal command prompt mode. Exit just closes the terminal. A restart didn't help either.
I would like to exit the bash mode so I don't mess anything up. Thanks!
Just switch the user back to your normal user (username)
Additional you can run sudo -k to emtpy the password cache, so next time you run a sudo command you have to enter the password again.
Does running the command reset help?
Required, but never shown