home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: shl Chapter 2
UNIX Commands
Next: Reference: size
 

shutdown



/usr/sbin/shutdown

 [

options

]

Allow a privileged user to change system state. Default behavior is to terminate user processes, taking system down from multi-user state (state 2) to single-user state. That is, only the system console provides access. shutdown sends a warning message, waits 60 seconds, sends a final message, waits another 60 seconds, and finally prompts for confirmation. shutdown is the SVR4 alternative to halt or reboot .

Options

-g n

Use a grace-period of n seconds instead of 60.

-i k

Tell the init command to place system in state k :

s

Single-user state (the default).

0

Shutdown for safe power-off.

1

Like s , but mount multi-user file systems.

5

Stop system; go to firmware mode.

6

Stop system and then reboot.

-y

Suppress the default prompt for confirmation.


Previous: Reference: shl UNIX in a Nutshell: System V Edition Next: Reference: size
Reference: shl Book Index Reference: size

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System