terminal linux Linux Navigation MOC
Previously typed commands are stored in a unique history file for each terminal shell. In the BASH shell, the file is stored in the home folder named .bash_history
Reading the History
The history file can be read like a text file or with the history command.
Clearing the History
- Delete the
.bash_historyfile - Clear history in memory:
history -c