Logging in as the root user should never be done on Linux. Using the root account could lead to disaster. Sudo is the preferred method of gaining elevated privileges. When I first started using Linux ...
Exiting a script and logging out are very different, but sometimes you may need to log out of your Linux system from within a script. Here's how to do it. Most of the time, exiting a script leaves you ...