-   Fedora (
-   -   Clear previous commands in Terminal (

Hitboxx 07-12-2006 03:22 AM

Clear previous commands in Terminal
Hi mates,

A primitive query but how to clear the previous commands in terminal which is accessed by using up/down arrow keys?


spooon 07-12-2006 03:30 AM

exit the shell and open another one, and then edit the ~/.bash_history file

Hitboxx 07-12-2006 03:37 AM

Thanks mate. Another invaluable tip. But is there some way to automate that process instead of editing everytime?

spooon 07-12-2006 04:03 AM


history -c
will clear the entire history i think

and i think putting something like

in your .bashrc will not keep a history altogether

Hitboxx 07-12-2006 07:20 AM

Wow thanks again man :)

All times are GMT -5. The time now is 11:41 AM.