LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-10-2005, 06:57 AM   #1
learnfast
Member
 
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
Code:
/etc/profile
you can change the number of commands that are saved in the .history file in the user's directory. However, I go to:

/home/user1

and do a
Code:
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).

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

Rep: Reputation: 79
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
reddazz
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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