$ history
1 ls
2 clear
3 ifconfig -a
4 ls
5 ifconfig
6 ping www.baidu.com
7 ls
8 cd Downloads/
9 ls
10 tar -xvzf mysql-5.6.10.tar.gz
11 ls
12 gcc -v
13 ifconfig
... ... 部分省略 ... ...
56 ifconfig -a
57 vi my-new.cnf
58 clear
59 ls
60 ls -l
61 history
[beyes@centos mysql-5.6.10]$ echo "hello" "world"
hello world
[beyes@centos mysql-5.6.10]$ echo !$
echo "world" #将 !$ 展开后的形式
world
[beyes@centos mysql-5.6.10]$ who
beyes pts/0 2013-03-04 09:58 (192.168.1.110)
beyes pts/1 2013-03-05 09:59 (192.168.1.110)
[beyes@centos mysql-5.6.10]$ uname
Linux
[beyes@centos mysql-5.6.10]$ echo "hello"
hello
[beyes@centos mysql-5.6.10]$ !u
uname #将 !u 展开后所得的命令
Linux
[beyes@centos mysql-5.6.10]$ echo "hello"
hello
[beyes@centos mysql-5.6.10]$ which ls
alias ls='ls --color=auto'
/bin/ls
[beyes@centos mysql-5.6.10]$ ls
bin data2 include man mysql_error.log scripts support-files
COPYING data3 INSTALL-BINARY my.cnf mysql-test share
data docs lib my-new.cnf README sql-bench
[beyes@centos mysql-5.6.10]$ !?ch?
which ls # 将 !?ch? 展开后所得的命令
alias ls='ls --color=auto'
/bin/ls
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |