Usint Bash History

por | 16 febrero, 2008

$ echo $HISTFILE $HISTSIZE $HISTFILESIZE
/home/user/.bash_history 1000 1000

List previous number of history commands
$ history 5
 1033  sudo yum update
 1034  echo $HISTFILE $HISTSIZE $HISTFILESIZE
 1035  history
 1036  echo $HISTFILE $HISTSIZE $HISTFILESIZE
 1037  history 5

Ctrl + r to search a string history