[root@www ~]# history [n]
[root@www ~]# history [-c]
[root@www ~]# history [-raw] histfiles
参数:
n : 数字,列出最近的 n 条命令
-c : 将目前 shell 中的所有 history 内容全部消除
-r : 将 histfiles 的内容读到目前这个shell的history记忆中
-a : 将目前新增的 history 命令加入 histfiles 中,若没有加文件名,则默认写入 ~/.bash_history
-w : 将目前 history 记忆内容写入到 histfiles 中
[root@www ~]# !number
[root@www ~]# !comman
[root@www ~]# !!
参数:
number : 执行第几条命令
command : 有最近的命令向前搜寻命令开头为 command 的那个命令,并执行
! : 执行上一条命令



