You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
841 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

reboot
===
重新启动正在运行的Linux操作系统
## 补充说明
**reboot命令** 用来重新启动正在运行的Linux操作系统。
### 语法
```
reboot(选项)
```
### 选项
```
-d重新开机时不把数据写入记录文件/var/tmp/wtmp。本参数具有“-n”参数效果
-f强制重新开机不调用shutdown指令的功能
-i在重开机之前先关闭所有网络界面
-n重开机之前不检查是否有未结束的程序
-w仅做测试并不真正将系统重新开机只会把重开机的数据写入/var/log目录下的wtmp记录文件。
```
### 实例
```
reboot //重开机。
reboot -w //做个重开机的模拟(只有纪录并不会真的重开机)。
```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->