老鷹有問題 shutdown 的參數是什麼??
雖然google的到老鷹還是來找茶,
幫助後面有需要的人直接知道指令用法~~!
shutdown -h 10 = 10分鐘後關機,他只能用分鐘去計算嗎? 還是可以以小時或者以天??
麻煩各位大神教學~~!
<pre class="c" name="code">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.
time的格式有 now, 現在.
+m 之後幾分鐘
hh:mm 指定時間,例如 21:30 晚上9點半.
後面還可以加訊息.