history
From Initq
The shell history keeps track of every command you type. it is stored in
[alibaba@ohnonono ~]$ ls -la ~/.bash_history -rw------- 1 alibaba alibaba 176 May 25 11:18 /home/alibaba/.bash_history [alibaba@ohnonono ~]$ cat .bash_history type ls type cat type time ls -la /bin/pwd man cd cd /var/www/html cd ~
Contents |
Clear History
# echo $HISTSIZE 1000 [a507394@localhost ~]$ export HISTSIZE=0
Repeat last command
- # !!
Look at history
- # history
Run specific command
- # !<num>