linux 命令和教程补充

This commit is contained in:
estomm
2021-12-24 11:16:28 +08:00
parent 40e916976b
commit b7c3653392
586 changed files with 46455 additions and 39 deletions

48
Linux/command/shutdown.md Normal file
View File

@@ -0,0 +1,48 @@
shutdown
===
用来执行系统关机的命令
## 补充说明
**shutdown命令** 用来系统关机命令。shutdown指令可以关闭所有程序并依用户的需要进行重新开机或关机的动作。
### 语法
```shell
shutdown(选项)(参数)
```
### 选项
```shell
-c当执行“shutdown -h 11:50”指令时只要按+键就可以中断关机的指令;
-f重新启动时不执行fsck
-F重新启动时执行fsck
-h将系统关机
-k只是送出信息给所有用户但不会实际关机
-n不调用init程序进行关机而由shutdown自己进行
-rshutdown之后重新启动
-t<秒数>:送出警告信息和删除信息之间要延迟多少秒。
```
### 参数
* [时间]设置多久时间后执行shutdown指令
* [警告信息]:要传送给所有登入用户的信息。
### 实例
指定现在立即关机:
```shell
shutdown -h now
```
指定5分钟后关机同时送出警告信息给登入用户
```shell
shutdown +5 "System will shutdown after 5 minutes"
```