Linux UNIX History command

查询历史命令:history
调用历史命令:!命令编号
查询历史命令:Ctrl+r
相关文件:用户家目录下.bash_history
^2^1: modify the previous command
Example:
#ping 192.168.0.196
#^196^1 (= ping 192.168.0.1)
 
Use the last item in the previous command
press <esc> and press <.> 
or press <Alt+.>
Example:
#ping 192.168.0.196
#telnet press <Alt+.> = telnet 192.168.0.196 

Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error