2019-03-15 03:44:05 +00:00
|
|
|
|
# shutdown
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
> 关闭并重新启动系统。
|
2021-11-14 19:45:59 +00:00
|
|
|
|
> 更多信息:<https://ss64.com/osx/shutdown.html>.
|
2019-03-15 03:44:05 +00:00
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 立即关机:
|
2019-03-15 03:44:05 +00:00
|
|
|
|
|
|
|
|
|
`shutdown -h now`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 立即休眠:
|
2019-03-15 03:44:05 +00:00
|
|
|
|
|
|
|
|
|
`shutdown -s now`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 立即重启:
|
2019-03-15 03:44:05 +00:00
|
|
|
|
|
|
|
|
|
`shutdown -r now`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 倒计时 5 分钟重启:
|
2019-03-15 03:44:05 +00:00
|
|
|
|
|
2024-01-01 09:38:53 +00:00
|
|
|
|
`shutdown -r "+{{5}}"`
|
2021-11-13 18:08:10 +00:00
|
|
|
|
|
|
|
|
|
- 在下午 1:00(使用 24 小时时钟)关机:
|
|
|
|
|
|
|
|
|
|
`shutdown -h {{1300}}`
|
|
|
|
|
|
|
|
|
|
- 在 2042 年 5 月 10 日上午 11:30 重新启动(输入格式:年年月月日日时时分分):
|
|
|
|
|
|
|
|
|
|
`shutdown -r {{4205101130}}`
|