LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Escaping from .bash_history (https://www.linuxquestions.org/questions/linux-general-1/escaping-from-bash_history-173226/)

ivanatora 04-22-2004 04:24 AM

Escaping from .bash_history
 
I don't want my actions to be logged in ~/.bash_history, but I want to keep it for future investigations. So, renaming and deleting the file isn't a solution. How can I escape from logging there?

maroonbaboon 04-22-2004 05:58 AM

Put the line

unset HISTFILE

in your .bashrc file (maybe putting it in .bash_profile also works, but that's where I've got it).

ivanatora 04-25-2004 04:37 PM

export HISTFILE=/dev/null
also works :)
This thread have been discussed here before, I should have done a search ;)


All times are GMT -5. The time now is 10:22 AM.