Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-23-2010, 11:30 PM   #1
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..


Old 11-24-2010, 12:31 AM   #2
Senior Member
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,482

Rep: Reputation: 216Reputation: 216Reputation: 216
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
Senior Member
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,146
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Some of the locations are:

/home/prayag/.wine/drive_c/Program Files/Spiceworks/lib/ruby/1.8/irb/ext/history
1 members found this post helpful.
Old 11-24-2010, 12:42 AM   #4
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
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
LQ Newbie
Registered: Nov 2010
Posts: 6

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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:12 PM.

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