Skip to content

Commit bdc1e84

Browse files
authored
Create poweroff.md
1 parent 4aefdf7 commit bdc1e84

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

command/poweroff.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
poweroff
2+
===
3+
4+
关闭Linux系统,关闭记录会被写入到/var/log/wtmp日志文件中。
5+
6+
## 补充说明
7+
8+
**grename命令** 可以重命名卷组的名称。
9+
10+
### 语法
11+
12+
```
13+
poweroff [选项]
14+
```
15+
16+
### 选项
17+
18+
```
19+
-n 关闭之前不同步
20+
-p 当被称为halt时关闭电源
21+
-v 增加输出,包括消息
22+
-q 降低输出错误唯一的消息
23+
-w 并不实际关闭系统,只是写入/var/log/wtmp文件中
24+
-f 强制关机,不调用shutdown
25+
```
26+
27+
### 例子
28+
29+
关闭Linux系统。
30+
31+
```bash
32+
[root@localhost ~]# poweroff
33+
```
34+
35+
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

0 commit comments

Comments
 (0)