日期:2014-05-16  浏览次数:20710 次

linux常用命令手册

前言:整理了一份linux常用命令手册,与大家分享。这是一些比较常用的命令。

我已经整理成一份PDF带书签的手册,可以到CSDN免费下载。


下载地址:http://download.csdn.net/detail/lianggzone/6266467


第一章 注销、重启、关机

1、注销

输入“exit”命令或者使用Ctrl+D组合键

2、重启

输入“reboot”命令或“shutdown –r now”命令

3、关机

输入“halt”命令或“shutdown –h now”命令

4、shutdown

4.1、语法

shutdown [-akrhHPfnc] [-t secs] time[warning message]

4.2、参数

 -a:      use /etc/shutdown.allow

 -k:      don't really shutdown,only warn.

 -r:      reboot after shutdown.

 -h:      halt after shutdown.

 -P:      halt action is to turnoff power.

 -H:      halt action is to justhalt.

 -f:      do a 'fast' reboot (skipfsck).

 -F:      Force fsck on reboot.

 -n:      do not go through"init" but go down real fast.

 -c:      cancel a runningshutdown.

  -tsecs: delay between warning and kill signal.

  [时间]  设置多久时间后执行shutdown指令。

4.3、案例

l  10分钟后关键

shutdown -h 10        

l  10分钟后重启

shutdown –r 10

5、init   转换运行级别

5.1、语法

init [0-6]

5.2、注意

init 0为关机,init 6为重启。

第二章 帮助类命令

1、man 显示指定命令的手册页帮助信息

1.1、语法

man  命令名

1.2、案例

l  用man命令和查看ls命令。

man ls

2、help 显示指定命令的帮助信息

2.1、语法