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 03-10-2005, 06:57 AM   #1
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Rep: Reputation: 15
where are a user's commands saved?

I read in my redhat9 book that in
you can change the number of commands that are saved in the .history file in the user's directory. However, I go to:


and do a
ls -al
and see six files that start with "." but none of them are ".history".

Where are the commands saved (I am logged in as "user1" and using the bash shell and the up arrow brings back the commands I have executed).

Old 03-10-2005, 07:10 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
Try ~/.bash_history

Note that users can easily clear this list so it won't guarentee the files containing every command that has been run.
Old 03-10-2005, 08:17 AM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can also just type "history". "man history" will give you some interesting info on how to use this command.


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
Money I have saved. frob23 General 14 03-13-2005 04:22 PM
Where is my file being saved, linux IO sopiaz57 Linux - Security 2 01-20-2005 09:55 AM
Can my monitor be saved? jeffz General 1 08-09-2004 12:08 AM
changing user's previlegdes for commands nchauhan Linux - Newbie 5 06-14-2003 09:32 PM
disasters saved acid_kewpie General 7 01-29-2002 04:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:26 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
Open Source Consulting | Domain Registration