Linux命令:poweroff

关闭Linux系统,关闭记录会被写入到/var/log/wtmp日志文件中

2024-12-31 17:38:49

命令行command

补充说明

grename命令 可以重命名卷组的名称。

语法

poweroff [选项]

选项

-n 关闭之前不同步
-p 当被称为halt时关闭电源
-v 增加输出,包括消息
-q 降低输出错误唯一的消息
-w 并不实际关闭系统,只是写入/var/log/wtmp文件中
-f 强制关机,不调用shutdown

例子

关闭Linux系统。

[root@localhost ~]# poweroff

评论

静谧以待,您的评论将是点睛之笔

撰写首个评论,启程你的前端奇妙之旅

is a Wiki for programming enthusiasts and professionals, organizing knowledge on programming.

Connect With Me

I have a fair amount of knowledge of Javascript, Typescript, VueJs, and Nuxt. If you have an interesting idea, either open source or paid let's connect.

Sent Mail
© 2024-2025 © . All rights reserved.