LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-23-2010, 11:30 PM   #1
srajeshkumar
LQ Newbie
 
Registered: Jul 2010
Posts: 22

Rep: Reputation: 0
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..
 
Old 11-24-2010, 12:31 AM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,429

Rep: Reputation: 196Reputation: 196
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.
 
1 members found this post helpful.
Old 11-24-2010, 12:35 AM   #3
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
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
 
1 members found this post helpful.
Old 11-24-2010, 12:42 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
The location can be changed by setting the $HISTFILE environment variable
 
Old 11-24-2010, 12:44 AM   #5
dharanivasan
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Rep: Reputation: 1
HISTFILE environment variable determines the history file path.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save command history in Linux kkracdba Linux - Server 1 06-20-2010 04:40 AM
Command history logs for linux/Solaris talat Linux - Security 2 01-16-2010 07:01 AM
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 03:14 AM
Alternate Emerde Download Location Orkie Slackware 2 04-06-2005 09:14 AM
Installing eclipse with alternate java location oberonix Linux - Newbie 1 04-06-2004 08:02 AM


All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration