文档章节

man shutdown

wsdsb
 wsdsb
发布于 2017/08/23 23:05
字数 461
阅读 9
收藏 0

shutdown(8)                                                        shutdown(8)

NAME
       shutdown - bring the system down

SYNOPSIS
       shutdown [OPTION]...  TIME [MESSAGE]

DESCRIPTION
       shutdown arranges for the system to be brought down in a safe way.  All
       logged-in users are notified that the system is going down and,  within
       the last five minutes of TIME, new logins are prevented.

       TIME  may  have  different  formats, the most common is simply the word
       ’now’ which will bring the system down immediately.  Other  valid  for-
       mats  are  +m,  where m is the number of minutes to wait until shutting
       down and hh:mm which specifies the time on the 24hr clock.

       Once TIME has elapsed, shutdown sends a request to the  init(8)  daemon
       to bring the system down into the appropriate runlevel.

       This is performed by emitting the runlevel(7) event, which includes the
       new runlevel in the RUNLEVEL environment variable as well as the previ-
       ous  runlevel  (obtained from the environment or from /var/run/utmp) in
       the PREVLEVEL variable.  An additional INIT_HALT variable may  be  set,
       this will contain the value HALT when bringing the system down for halt
       and POWEROFF when bringing the system down for power off.

:


OPTIONS
       -r     Requests that the system be rebooted after it has  been  brought
              down.

       -h     Requests  that  the system be either halted or powered off after
              it has been brought down, with the choice as to which left up to
              the system.

       -H     Requests  that  the  system  be halted after it has been brought
              down.

       -P     Requests that the system  be  powered  off  after  it  has  been
              brought down.

       -c     Cancels  a  running  shutdown.   TIME is not specified with this
              option, the first argument is MESSAGE.

       -k     Only send out the warning messages and disable  logins,  do  not
              actually bring the system down.

ENVIRONMENT
       RUNLEVEL
              shutdown  will  read  the current runlevel from this environment
              variable if set in preference to reading from /var/run/utmp

FILES
       /var/run/utmp
:


OPTIONS
       -r     Requests that the system be rebooted after it has  been  brought
              down.

       -h     Requests  that  the system be either halted or powered off after
              it has been brought down, with the choice as to which left up to
              the system.

       -H     Requests  that  the  system  be halted after it has been brought
              down.

       -P     Requests that the system  be  powered  off  after  it  has  been
              brought down.

       -c     Cancels  a  running  shutdown.   TIME is not specified with this
              option, the first argument is MESSAGE.

       -k     Only send out the warning messages and disable  logins,  do  not
              actually bring the system down.

ENVIRONMENT
       RUNLEVEL
              shutdown  will  read  the current runlevel from this environment
              variable if set in preference to reading from /var/run/utmp

FILES
       /var/run/utmp
:

 runlevel(7) init(8) telinit(8) reboot(8)

Upstart        

© 著作权归作者所有

上一篇: 关闭和重启
下一篇: java.io.Writer
wsdsb
粉丝 6
博文 152
码字总数 321169
作品 0
福州
程序员
私信 提问
note4--鸟哥的Linux私房菜

《鸟哥的Linux私房菜》note4 第五章、首次登陆与在线求助 ,man page 1、重新启动x window (1)注销--〉重新登陆 (2)[Alt]+[Ctrl]+[Backspace] 2、X window与文本模式(又叫终端机接口ter...

g-k方正
2013/02/10
420
0
常用Linux终端命令

1 命令行日常系快捷键: CTRL + U - 剪切光标前的内容 CTRL + K - 剪切光标至行末的内容 CTRL + Y - 粘贴 CTRL + E - 移动光标到行末 CTRL + A - 移动光标到行首 ALT + F - 跳向下一个空格 ...

M玺
2017/05/17
0
0
小蚂蚁学习Linux(7)——用户登陆查看命令、关机重启命令、帮助命令

用户登陆查看命令 w 查看系统当中登陆了哪些用户,以及用户信息 who 只能查看用户名、登陆终端、登陆ip(比上一个命令返回内容更加简洁) last 查询当前登陆和过去登陆的用户信息,判断系统当...

嗜学如命的小蚂蚁
2015/11/02
85
0
重启命令:reboot与init 6的区别

"init 6" 基于一系列/etc/inittab文件,并且每个应用都会有一个相应shutdown脚本。 'init 6' 调用一系列shutdown脚本(/etc/rc0.d/K*)来使系统优雅关机; 'reboot'并不执行这些过程,reboot更是......

想飞的鱼8
2018/06/26
0
0
Linux自学笔记——linux文件系统

Linux的文件系统 根文件系统(rootfs),内核挂载的第一个文件系统,在启动流程的这一篇文章里有提到; LSB,FHS(Filesystem Herirache Standard) 常用的文件系统目录:/etc,/usr,/var,/root/...

claude_liu
2017/09/15
0
0

没有更多内容

加载失败,请刷新页面

加载更多

spring cloud

一、从面试题入手 1.1、什么事微服务 1.2、微服务之间如何独立通讯的 1.3、springCloud和Dubbo有哪些区别 1.通信机制:DUbbo基于RPC远程过程调用;微服务cloud基于http restFUL API 1.4、spr...

榴莲黑芝麻糊
52分钟前
2
0
Executor线程池原理与源码解读

线程池为线程生命周期的开销和资源不足问题提供了解决方 案。通过对多个任务重用线程,线程创建的开销被分摊到了多个任务上。 线程实现方式 Thread、Runnable、Callable //实现Runnable接口的...

小强的进阶之路
昨天
6
0
maven 环境隔离

解决问题 即 在 resource 文件夹下面 ,新增对应的资源配置文件夹,对应 开发,测试,生产的不同的配置内容 <resources> <resource> <directory>src/main/resources.${deplo......

之渊
昨天
8
0
详解箭头函数和普通函数的区别以及箭头函数的注意事项、不适用场景

箭头函数是ES6的API,相信很多人都知道,因为其语法上相对于普通函数更简洁,深受大家的喜爱。就是这种我们日常开发中一直在使用的API,大部分同学却对它的了解程度还是不够深... 普通函数和...

OBKoro1
昨天
7
0
轻量级 HTTP(s) 代理 TinyProxy

CentOS 下安装 TinyProxy yum install -y tinyproxy 启动、停止、重启 # 启动service tinyproxy start# 停止service tinyproxy stop# 重启service tinyproxy restart 相关配置 默认...

Anoyi
昨天
2
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部