LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux command history alternate location (https://www.linuxquestions.org/questions/linux-newbie-8/linux-command-history-alternate-location-846170/)

srajeshkumar 11-23-2010 10:30 PM

Linux command history alternate location
 
Hi Guys,

I am just wondering is there any other altrenate location which saves the history command logs other that bash_history file.

Thanks in advance in helping me..

Regards

Rajesh..

mlangdn 11-23-2010 11:31 PM

Each user's bash history will be found in /home/usr/.bash_history

For root, that will be /root/bash_history.

That's the only place(s) to find that log.

prayag_pjs 11-23-2010 11:35 PM

Some of the locations are:

Quote:

/home/prayag/.bash_history
/home/prayag/.mysql_history
/home/prayag/.unixhistory.swp
/home/prayag/.flock/browser/6xdtv3ad.default/formhistory.sqlite
/home/prayag/.wine/drive_c/Program Files/Spiceworks/lib/ruby/1.8/irb/ext/history
.rb
/home/prayag/.mozilla/firefox/tohdh0xf.default/formhistory.sqlite
/home/prayag/.mplayer/gui.history


catkin 11-23-2010 11:42 PM

The location can be changed by setting the $HISTFILE environment variable

dharanivasan 11-23-2010 11:44 PM

HISTFILE environment variable determines the history file path.


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