Sunday, March 18, 2012

Clear history of commands in Terminal on Debian Linux

I talk about the history of commands I can use when I press the up and down arrow keys. In Terminal, I can use the same command without typing the whole thing again by using an up arrow key.

To clear the history of such commands, I can simply look for the file below:

.bash_history 


and delete this file by the command:


rm .bash_history

This page helped me to learn this skill.

No comments:

RSS