您的位置:首页 > 运维架构 > Linux

初学Linux 命令使用小技巧

2015-08-28 11:17 816 查看

man 帮助命令

man 命令是Linux 帮助命令,通过man命令可以查看Linux 的帮助命令

参数 -f 显示命令简介和whatis 相同

$ whatis ifconfig
ifconfig  (8)  - configure a network interface
man -f ifconfig
ifconfig             (8)  - configure a network interface


详细查看命令

$ man  ifconfig


K –上一行

enter – 下一行

b –上一页

space –下一页

/字符 查找某个字符

q 退出

history

history 是历史命令查看命令

快速执行上一个命令

1、使用向上的方向键

2、Ctrl+p

3、!!

4、!-1

5、ESC+”.”

执行第某个命令

$ history
24  ls
25  cd /usr/java6_64/bin
26  ls
27  cd ..
28  ls
29  cd jre/
30  ls
31  cd lib/
32  ls
$!32
ls
app  bin  domains  installmedium  logs  Oracle
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux