大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
shutdown
双阳网站建设公司创新互联公司,双阳网站设计制作,有大型网站制作公司丰富经验。已为双阳成百上千提供企业网站建设服务。企业网站搭建\成都外贸网站建设公司要多少钱,请找那个售后服务好的双阳做网站的公司定做!
功能说明:系统关机命令
语法:shutdown [-t sec] [-arkhncfFHP] time [warning-message]
包名称:SysVinit
相关命令:halt,reboot
补充说明:本命令可以关闭所有的程序,并依用户的需要,进行重新开机或关机的操作。Shutdown命令可以指定系统在特定时间关机,但仅限于当日。若需指定在特定日期关机,则需搭配at命令执行。
参数:
-a
Use /etc/shutdown.allow.
-t sec
Tell init(8) to wait sec seconds between sending processes the warning and the kill signal, before changing to another runlevel.
-k
Don't really shutdown; only send the warning messages to everybody.
-r
Reboot after shutdown.
-h
Halt or poweroff after shutdown.
-H
Halt action is to halt or drop into boot monitor on systems that support it.
-P
Halt action is to turn off the power.
-n
[DEPRECATED] Don't call init(8) to do the shutdown but do it ourself. The use of this option is discouraged, and its results are not always what you'd expect.
-f
Skip fsck on reboot.
-F
Force fsck on reboot.
-c
Cancel an already running shutdown. With this option it is of course not possible to give the time argument, but you can enter a explanatory message on the command line that will be sent to all users.
time
When to shutdown.
warning-message
Message to send to all users.
范例:
1)立即关闭系统:
# shutdown -h now
2)执定在21:10将系统重新开机:
# shutdown -r 21:10
3)指定10分钟后关机,并发送警告信息:
# shutdown +10 “conputer will shut down”
4)取消关机:
# shutdown -c
Linux常用的有3中进入终端界面方法,分别如下:
1、按快捷键“Ctrl+Alt+T”即可打开终端窗口
2、或者按“Ctrl+Alt+F1-F6”均可进入终端(模拟终端,不显示桌面)
3、直接搜索“终端”并进入
注意事项:
如果采用方法2的F1-F6的方法,返回图形界面只要按“Ctrl+Alt+F7即可”。
1、使用快捷键:Ctrl加Alt加T,此时终端为桌面版终端命令窗口。
2、使用搜索框:在搜索框内搜索终端并进入。
3、使用快捷键:Ctrl+加Alt加F1到F6都可以,此时打开的是全文字终端,图形界面将会被关闭。
注意事项:如果采用了F1到F6的方法,返回图形界面只要按Ctrl加Alt加F7即可。