linux 关机方式

摘要:
linux关机命令:1-init0关机。

linux 关机命令:

1- init 0 关机。

具体详情接受可以 init --help 查询 如下:

init [OPTIONS...] {COMMAND}

Send control commands to the init daemon.

--help Show this help
--no-wall Don't send wall message before halt/power-off/reboot

Commands:
0 Power-off the machine
6 Reboot the machine
2, 3, 4, 5 Start runlevelX.target unit
1, s, S Enter rescue mode
q, Q Reload init daemon configuration
u, U Reexecute init daemon

2- shutdown -h now 立刻关机 shutdown 详情介绍如下:

--help Show this help
-H --halt Halt the machine
-P --poweroff Power-off the machine
-r --reboot Reboot the machine
-h Equivalent to --poweroff, overridden by --halt
-k Don't halt/power-off/reboot, just send warnings
--no-wall Don't send wall message before halt/power-off/reboot
-c Cancel a pending shutdown

3- halt 命令

Halt the system.

--help Show this help
--halt Halt the machine
-p --poweroff Switch off the machine
--reboot Reboot the machine
-f --force Force immediate halt/power-off/reboot
-w --wtmp-only Don't halt/power-off/reboot, just write wtmp record
-d --no-wtmp Don't write wtmp record
--no-wall Don't send wall message before halt/power-off/reboot

4- poweroff

Power off the system.

--help Show this help
--halt Halt the machine
-p --poweroff Switch off the machine
--reboot Reboot the machine
-f --force Force immediate halt/power-off/reboot
-w --wtmp-only Don't halt/power-off/reboot, just write wtmp record
-d --no-wtmp Don't write wtmp record
--no-wall Don't send wall message before halt/power-off/reboot

免责声明:文章转载自《linux 关机方式》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Unity Kajiya Hair Shader Mod by Normalsandroid apk 防止反编译技术第三篇-加密下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

使用shutdown命令实现局域网内远程关机、重启整蛊他人

用法: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/soft] [/f]    [/m \computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]     没有参数   显示帮助。这与键入 /? 是一样的。    /? ...

Ubuntu关机、重启命令

  重启命令 :     1、reboot     2、shutdown -r now 立刻重启    3、shutdown -r 10 过10分钟自动重启    4、shutdown -r 20:35 在时间为20:35时候重启    如果是通过shutdown命令设置重启的话,可以用shutdown -c命令取消重启     关机命令 :     1、...

批量关闭远程计算机

批量关闭远程计算机━━━━━━━━━━━━━━━━━━━━━━━━━━ Windows XP操作系统中带有一个名为shutdown的功能强大的关机工具。利用它不但可以完成Windows图形操作界面下可以完成的功能:注销用户、关闭或重 启计算机,更重要的是可以用它来定时关机、远程关机。这可是在Windows图形操作界面下完成不了的功能!如果某天您的计算机在下...

[windows]命令行关机或重启电脑

1.关机:菜单--〉运行--〉输入:cmd--〉输入:shutdown -s -t 0 2.重启:菜单--〉运行--〉输入:cmd--〉输入:shutdown -r -t 0 (注:“-r”代表重启,“-t 0”设置命令执行时间为0秒,立即执行) 扩展: 1.制作成cmd文件式程序:把shutdown -r -t 0 语句用记事本写入,另存为reboot....

Python攻城狮教你用Pythin开机和关机,关机只需一条执行命令

本文参考原文-http://bjbsair.com/2020-03-25/tech-info/6260.html 本文目标 远程开机原理 Python 远程开机代码实现 Python 关机说明 Python 开机 关于用程序来开机,是怎么做到的呢?这就是 WOL 技术 Wake-On-Lan, 利用计算机在关机或休眠状态时,网卡及主板部分仍然有微弱的供...

于win2008R2虽然激活,但是一个小时之后就会自动强制关机的问题

写一个批处理文件: taskkill /f /im wlms.exeping -n  4 127.0.0.1shutdown -a 用记事本写下以上的命令,另存为.bat 批处理文件。双击运行,即可。每次开机后,都要运行一次,因为每次重新开机,wlms.exe这个服务都会运行的。 taskkill /f /im wlms.exe  :这个表示关闭wlms....