首页
首页 » 系统管理 » shutdown

shutdown

shutdown
功能说明:系统关机指令。
语  法:shutdown [-efFhknr][-t 秒数][时间][警告信息]
补充说明:shutdown指令可以关闭所有程序,并依用户的需要,进行重新开机或关机的动作。
参  数:
 -c  当执行"shutdown -h 11:50"指令时,只要按+键就可以中断关机的指令。 
 -f  重新启动时不执行fsck。 
 -F  重新启动时执行fsck。 
 -h  将系统关机。 
 -k  只是送出信息给所有用户,但不会实际关机。 
 -n  不调用init程序进行关机,而由shutdown自己进行。 
 -r  shutdown之后重新启动。 
 -t<秒数>  送出警告信息和删除信息之间要延迟多少秒。 
 [时间]  设置多久时间后执行shutdown指令。 
 [警告信息]  要传送给所有登入用户的信息。

shutdown

shutdown [options] when [message]

System administration command. Terminate all processing. when may be a specific time (in hh:mm format), a number of minutes to wait (in +m format), or now. A broadcast message notifies all users to log off the system. Processes are signaled with SIGTERM to allow them to exit gracefully. /etc/init is called to perform the actual shutdown, which consists of placing the system in runlevel 1. Only privileged users can execute the shutdown command, although init may call shutdown with root privileges when the Ctrl-Alt-Del key combination is pressed from the console keyboard. Broadcast messages, default or defined, are displayed at regular intervals during the grace period; the closer the shutdown time, the more frequent the message.

Options

-a

When called from init, shut down only if one of the users listed in the file /etc/shutdown.allow is currently logged in.

-c

Cancel a shutdown that is in progress.

-f

Reboot fast, by suppressing the normal call to fsck when rebooting.

-F

Force a filesystem check (fsck) on reboot.

-h

Halt the system when shutdown is complete.

-k

Print the warning message, but suppress actual shutdown.

-r

Reboot the system when shutdown is complete.

-t num

Ensure a num-second delay between killing processes and changing the runlevel.