發信人: ndcbbs (罐子里的妖怪), 信區: Unix
標 題: 和BSD兼容的shutdown
發信站: BBS 水木清華站 (Thu Dec 23 15:55:47 1999)
SunOS/BSD Compatibility Package Commands shutdown(1B)
SunOS/BSD 兼容命令包.
NAME
名稱
shutdown - close down the system at a given time
在給定的時間內容/關畢系統.
SYNOPSIS
大綱
/usr/ucb/shutdown [ -fhknr ] time [ warning-message ... ]
DESCRipTION
shutdown PRovides an automated procedure to notify users
when the system is to be shut down. time specifies when
shutdown will bring the system down; it may be the Word now
(indicating an immediate shutdown), or it may specify a
future time in one of two formats: +number and hour:min.
The first form brings the system down in number minutes, and
the second brings the system down at the time of day indi-
cated in 24-hour notation.
當系統將要關畢前,shutdown提供一個自動的進程對用戶進行提示.
在關畢系統時要求提供系統能存活的時間.時間可以指定為now(意思是
立即關畢)或者可以用下面兩種格式的一種.+number 和hour:min.
第一種格式會指定在未來的number分種后關畢系統后者指定當天
準確的時間.
At intervals that get closer as the apocalypse approaches,
warning messages are displayed at terminals of all logged-in
users, and of users who have remote mounts on that machine.
在關畢系統前遠程用戶和對該機器有mount操作的用戶將每隔一段
時間就會得到警告信息.
At shutdown time a message is written to the system log dae-
mon, syslogd(1M), containing the time of shutdown, the
instigator of the shutdown, and the reason. Then a ter-
minate signal is sent to init, which brings the system down
to single-user mode.
關畢系統時將會向系統的登陸守護程序發一個信息,信息中包括系統關畢時間,
執行者,和原因.然后一個中斷信號將發給init,init將會把系統重新起動到
單用戶模式.
OPTIONS
As an alternative to the above procedure, these options can
be specified:
作為可選的開關,含義如下:
-f Arrange, in the manner of fastboot(1B), that when the
system is rebooted, the file systems will not be
checked.
進行快速起動,起動時不會檢查文件系統.
-h Execute halt(1M).
執行halt(1M).
-k Simulate shutdown of the system. Do not actually shut
down the system.
模擬關機.不真正動作.
-n Prevent the normal sync(2) before stopping.
防止通常的對super-block的update.
-r Execute reboot(1M).
執行重起動.
FILES
/etc/rmtab remote mounted file system table
SunOS 5.6 Last change: 11 Oct 1994 1
SunOS/BSD Compatibility Package Commands shutdown(1B)
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
__________________________________
| ATTRIBUTE TYPE| ATTRIBUTE VALUE|
|__________________________________
| Availability | SUNWscpu |
|_______________|_________________|
SEE ALSO
參照:
fastboot(1B), login(1), halt(1M), reboot(1M), syslogd(1M),
sync(2), rmtab(4), attributes(5)
NOTES
解釋:
Only allows you to bring the system down between now and
23:59 if you use the absolute time for shutdown.
如果用絕對時間,時間指定必須在now和23:59之間.
SunOS 5.6 Last change: 11 Oct 1994 2