LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how do you clear the ... (https://www.linuxquestions.org/questions/linux-software-2/how-do-you-clear-the-150776/)

dailyd 02-26-2004 10:55 AM

how do you clear the ...
 
Hi , within console you can use the up/down keys the see the previous commands like doskey within windows, is there a way to clear these ??

thanks in advance

DrOzz 02-26-2004 11:01 AM

all of that is in the .bash_history file in your home folder ...
i never had to do this, or even think about this before ....
so i dont' know if there is a conventional way for this to be done
but what i can think of that will clear it other than deleting line by line is :

echo "" > .bash_history

but the above command will be in there after execution ;)

sarin 02-26-2004 11:09 AM

history -c

dailyd 02-26-2004 04:03 PM

cheers guys


All times are GMT -5. The time now is 02:43 AM.