Linux history tricks

1. The file contain all the history is at /home/$USER/.bash_history

2. The .bash_history file can be edited and it will reflect the output of $history command

3. Press Ctrl+r to search history in reverse manner

4. run command “!historyNumber” where history number is a number shown after command $history fired.

Leave a Reply