O'Reilly logo

Practical Linux by Bill Ball, John Ray, Michael Turner, M. Drew Streib

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Logging Out of Linux

After you create a new user account and a new user's password, log out of Linux by using the either the logout or exit command, as follows:

$ exit
$ logout

After you enter either of these commands, the display will clear, and the Linux login prompt will be redisplayed.

Rebooting Linux

To reboot your system, always use the shutdown command, which is found under the /sbin directory. Just powering off your computer can cause severe disk errors, and is an unsafe practice. I cannot stress enough the importance of properly shutting down your system. You must be the root operator or use the su command to use the shutdown command.

The shutdown command takes several command-line options. For example, using the -r, or ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required