Usage: shutdown [OPTION]... TIME [MESSAGE]
Bring the system down.
Options:
-r reboot after shutdown
-h halt or power off after shutdown
-H halt after shutdown (implies -h)
-P power off after shutdown (implies -h)
-c cancel a running shutdown
-k only send warnings, don't shutdown
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational messages
--help display this help and exit
--version output version information and exit
TIME may have different formats, the most common is simply the word 'now' which
will bring the system down immediately. Other valid formats are +m, where m is
the number of minutes to wait until shutting down and hh:mm which specifies the
time on the 24hr clock.
Logged in users are warned by a message sent to their terminal, you may include
an optional MESSAGE included with this. Messages can be sent without actually
bringing the system down by using the -k option.
If TIME is given, the command will remain in the foreground until the shutdown
occurs. It can be cancelled by Control-C, or by another user using the -c
option.
The system is brought down into maintenance (single-user) mode by default, you
can change this with either the -r or -h option which specify a reboot or
system halt respectively. The -h option can be further modified with -H or -P
to specify whether to halt the system, or to power it off afterwards. The
default is left up to the shutdown scripts.
Report bugs at
Usage: shutdown [OPTION]... TIME [MESSAGE]
Bring the system down.
Options:
-r reboot after shutdown
-h halt or power off after shutdown
-H halt after shutdown (implies -h)
-P power off after shutdown (implies -h)
-c cancel a running shutdown
-k only send warnings, don't shutdown
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational messages
--help display this help and exit
--version output version information and exit
TIME may have different formats, the most common is simply the word 'now' which
will bring the system down immediately. Other valid formats are +m, where m is
the number of minutes to wait until shutting down and hh:mm which specifies the
time on the 24hr clock.
Logged in users are warned by a message sent to their terminal, you may include
an optional MESSAGE included with this. Messages can be sent without actually
bringing the system down by using the -k option.
If TIME is given, the command will remain in the foreground until the shutdown
occurs. It can be cancelled by Control-C, or by another user using the -c
option.
The system is brought down into maintenance (single-user) mode by default, you
can change this with either the -r or -h option which specify a reboot or
system halt respectively. The -h option can be further modified with -H or -P
to specify whether to halt the system, or to power it off afterwards. The
default is left up to the shutdown scripts.
Report bugs at
shutdown(8) shutdown(8)
名前
shutdown - システムを停止させる
書式
shutdown [OPTION]... TIME [MESSAGE]
説明
shutdown は安全な方法でシステムを終了させるための段取りをする。すべての
ログイン中のユーザーへシステムが停止することを通知し、 TIME で指定さ れ
た時間のうち残り5分より、新規ログインを抑制する。
TIME は様々な書式を持つ。もっとも一般的なものは、即刻システムの終了をす
る ’now’ という単語である。その他の有効な書式は、システム停止まで m 分
待つための +m や24時間表記で指定した時間にシステムの停止をする hh:mm で
ある。
TIME が経過すると、 shutdown は init(8) デーモンへ適切なランレベルへ シ
ステムを移行させるための要求を送信する。
こ れは PREVLEVEL 環境変数に設定される前のランレベル ( この環境変数また
は /var/run/utmp から取得される ) と同様に RUNLEVEL 環境変数に設定さ れ
る新しいランレベルを含む runlevel(7) イベントの発行によって遂行される。
更に INIT_HALT 環境変数には、システムを停止させる場合には HALT が設定さ
れ、システムの電源断の場合には POWEROFF が設定される。
オプション
-r システムの終了後、再起動させることを要求する。
-h システム任せの選択ではあるが、システムが終了した後、停止するかま
たは電源断のどちらかをシステムに要求する。
-H システムが終了した後、システムの停止を要求する。
-P システムが終了した後、システムの電源断を要求する。
-c 実行中のシステム停止をキャンセルする。このオプションでは TIME は
指定せず、最初の引数は MESSAGE となる。
-k 実際にはシステムの終了はせずに、警告メッセージの送信とログインの
無効化だけを行う。
環境変数
RUNLEVEL
この環境変数が設定されている場合、 shutdown は /var/run/utmp か
らの読み込みよりも優先して現在のランレベルをこの環境変数から読み
込む。
ファイル
/var/run/utmp
このファイルより現在のランレベルが読み込まれる; 新しいランレベル
とともに更新される。
/var/log/wtmp
新しいランレベルの記録が追加される。
注意
Upstart の init(8) デーモンはランレベル自体を常に知っているわけではなく
、代わりにユーザースペースのツールで完全に実装される。
詳しくは runlevel(7) を参照のこと。
著者
Scott James Remnant
shutdown(8) shutdown(8)
NAME
shutdown - bring the system down
SYNOPSIS
shutdown [OPTION]... TIME [MESSAGE]
DESCRIPTION
shutdown arranges for the system to be brought down in a safe way. All
logged-in users are notified that the system is going down and, within
the last five minutes of TIME, new logins are prevented.
TIME may have different formats, the most common is simply the word
’now’ which will bring the system down immediately. Other valid for-
mats are +m, where m is the number of minutes to wait until shutting
down and hh:mm which specifies the time on the 24hr clock.
Once TIME has elapsed, shutdown sends a request to the init(8) daemon
to bring the system down into the appropriate runlevel.
This is performed by emitting the runlevel(7) event, which includes the
new runlevel in the RUNLEVEL environment variable as well as the previ-
ous runlevel (obtained from the environment or from /var/run/utmp) in
the PREVLEVEL variable. An additional INIT_HALT variable may be set,
this will contain the value HALT when bringing the system down for halt
and POWEROFF when bringing the system down for power off.
OPTIONS
-r Requests that the system be rebooted after it has been brought
down.
-h Requests that the system be either halted or powered off after
it has been brought down, with the choice as to which left up to
the system.
-H Requests that the system be halted after it has been brought
down.
-P Requests that the system be powered off after it has been
brought down.
-c Cancels a running shutdown. TIME is not specified with this
option, the first argument is MESSAGE.
-k Only send out the warning messages and disable logins, do not
actually bring the system down.
ENVIRONMENT
RUNLEVEL
shutdown will read the current runlevel from this environment
variable if set in preference to reading from /var/run/utmp
FILES
/var/run/utmp
Where the current runlevel will be read from; this file will
also be updated with the new runlevel.
/var/log/wtmp
A new runlevel record will be appended to this file for the new
runlevel.
NOTES
The Upstart init(8) daemon does not keep track of runlevels itself,
instead they are implemented entirely by its userspace tools.
See runlevel(7) for more details.
AUTHOR
Written by Scott James Remnant
コロナウイルスの日ごとの感染者数・死者数をグラフ化してみました。どの国が増加傾向にあり、どの国が終息に向かっているかを視覚化しています。
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa