红联Linux门户
Linux帮助

Windows & Linux关机命令

发布时间:2016-04-13 10:36:12来源:linux网站作者:ALAWSWF

Windows命令关机:

> shutdown -s -t 0

> shutdown -h 
用法: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy] 
没有参数                显示此消息(与 ? 相同) 
-i                      显示 GUI 界面,必须是第一个选项 
-l                      注销(不能与选项 -m 一起使用) 
-s                      关闭此计算机 
-r                      关闭并重启动此计算机 
-a                      放弃系统关机 
-m \\computername       远程计算机关机/重启动/放弃 
-t xx                   设置关闭的超时为 xx 秒 
-c "comment"            关闭注释(最大 127 个字符) 
-f                      强制运行的应用程序关闭而没有警告 
-d [u][p]:xx:yy         关闭原因代码 
u 是用户代码 
p 是一个计划的关闭代码 
xx 是一个主要原因代码(小于 256 的正整数) 
yy 是一个次要原因代码(小于 65536 的正整数) 


Linux命令关机:

$ shutdown -h now

$ shutdown --help 
Usage: shutdown [OPTION]... TIME [MESSAGE] 
Bring the system down. 
Options: 
-r                          reboot after shutdown 
-h                          halt or power off after shutdown 
-H                          halt after shutdown (implies -h) 
-P                          power off after shutdown (implies -h) 
-c                          cancel a running shutdown 
-k                          only send warnings, don't shutdown 
-q, --quiet                 reduce output to errors only 
-v, --verbose               increase output to include informational messages 
--help                  display this help and exit 
--version               output version information and exit


本文永久更新地址:http://www.linuxdiyf.com/linux/19737.html