易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux关机命令

1 shutdown:
[NAME
]  shutdown - bring the system down
SYNOPSIS
       /sbin/shutdown [-t sec] [-arkhncfF] time [warning-message]
DESCRIPTION
       shutdown  brings  the  system  down  in a secure way.  All logged-in users are notified that the system is going down, and login(1) is blocked.  It is possible to shut the system down immediately or after a specified delay.   All  processes  are first  notified  that the system is going down by the signal SIGTERM.  This gives programs like vi(1) the time to save the file being edited, mail and news processing programs a chance to exit cleanly, etc.  shutdown does its job  by  signalling  the  init  process, asking it to change the runlevel.  Runlevel 0 is used to halt the system, runlevel 6 is used to reboot the system, and runlevel 1 is used to put to system into a state where administrative tasks can be performed; this is  the
       default  if  neither  the  -h  or  -r flag is given to shutdown.  To see which actions are taken on halt or reboot see the
       appropriate entries for these runlevels in the file /etc/inittab.
OPTIONS
       -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     Do not really shutdown; only send the warning messages to everybody.
       -r     Reboot after shutdown.
    &n


相关文档:

Linux 的多线程编程的高效开发经验

2009 年 4 月 23 日
本文中我们针对 Linux 上多线程编程的主要特性总结出 5 条经验,用以改善 Linux 多线程编程的习惯和避免其中的开发陷阱。在本文中,我们穿插一些 Windows 的编程用例用以对比 Linux 特性,以加深读者印象。
背景
Linux 平台上的多线程程序开发相对应其他平台(比如 Windows)的多线程 API 有一些细微 ......

Linux Shell 笔记一

最近在学习linux,在这里给大家推荐一个网站http://linux.vbird.org/ 上面关于linux的教程写得很好,也避免了我在学习过程中的很多弯路。
程序一:HelloWord,在屏幕输出HelloWord
利用vim 创建一个sh01.sh文件
echo -e "Hello World!\a\n"
exit 0

程序二:将输入参数拼接后输出
read -p "First Name:" firstn ......

linux 查看 磁盘空间 以兆查看

Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
作者:北南南北
来自:LinuxSir.Org
提要:Linux
磁盘分区表、文件系统的查看、统计的工具很多,有些工具是多功能的,不仅仅是查看磁盘的分区表,而且也能进行磁盘分区的操作;但在本文,我们只讲磁盘分区
的查看,以及分区的使用情况的查看;本文只是给 ......

linux查看系统信息命令大全(不断添加中......)

      # uname -a               # 查看内核/操作系统/CPU信息
  # head -n 1 /etc/issue   # 查看操作系统版本
  # cat /proc/cpuinfo      # 查看CPU信息
  # hostname&nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号