next up previous
Next: Pulling Yourself Up by Up: Welcome to Linux Previous: A Brand New You

   
Shutting Down

Some day, computers will probably be as easy to use as televisions are today (no, we're not there yet...). Maybe we'll have remote controls to navigate easily between features and to turn off the machine.

At present, though, you can't simply turn off your computer when you're finished. You can always log out from your account, which will return you to your login screen, but if you want to completely shut off your machine, you've got a couple more steps to take.

Here's why: Even though you may not be typing, listening to music or browsing with Netscape, your machine is still working on a variety of processes in the background. (A process is a program which is being executed. Multiple processes are running all the time on your system.)

Curious? Want to take a peek? Just go to a shell prompt and type ktop or select System from the K-menu and then Taskmanager. You'll see the processes that are currently running.

Like a faithful assistant, your Linux system is carrying out tasks silently all the time. You can't just turn out the lights and lock the door on your assistant. Instead, you've got to give them time to put away their work and make sure everything's in its proper place before saying ''good night.''

To shutdown or reboot while you're in KDE, exit from your X session (panel -> Log out). Once you're at the login screen, left-click on Shutdown..., and select Shutdown (equals halt) or Shutdown and restart (equals reboot).

At the shell prompt, you can reboot or halt your system from your root account.

To reboot from the prompt, type:


\begin{tscreen}\begin{tex2html_preform}\begin{verbatim}shutdown -r now\end{verbatim}\end{tex2html_preform}\end{tscreen}

Or, if you want to exit from your system and turn off your machine, type:


\begin{tscreen}\begin{tex2html_preform}\begin{verbatim}shutdown -h now\end{verbatim}\end{tex2html_preform}\end{tscreen}

The -r option stands for ''reboot,'' while the -h option means ''halt.'' Stating now means that you want to perform this action immediately.

Remember to save your work and exit from any applications which may be running before you perform a shutdown from the shell prompt, because you could lose work.

If you choose to halt the system, you'll see a list of messages about which services are stopping; then, you'll see:


\begin{tscreen}\begin{tex2html_preform}\begin{verbatim}The system is halted\end{verbatim}\end{tex2html_preform}\end{tscreen}

Now everything's put away and it's safe to turn off your computer.

Try substituting +5 for now; you'll find that you've just commanded your assistant to put everything away and stop working in five minutes.

You can learn more about the shutdown command by typing:


\begin{tscreen}\begin{tex2html_preform}\begin{verbatim}man shutdown\end{verbatim}\end{tex2html_preform}\end{tscreen}

at a shell prompt. You'll be presented with a ''man page,'' which will tell you about this command.

To go forward a screen, press the Spacebar; to go back a screen, press B; and to quit, press Q.

To shutdown or reboot from KDE, from the log in screen, go to Shutdown -> Shutdown or Shutdown and restart. From the shell prompt: Log in as root, and type shutdown -r now (to reboot) or shutdown -h now (to halt).


next up previous
Next: Pulling Yourself Up by Up: Welcome to Linux Previous: A Brand New You
t-1@bestlinux.net