LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where are a user's commands saved? (https://www.linuxquestions.org/questions/linux-newbie-8/where-are-a-users-commands-saved-299963/)

learnfast 03-10-2005 06:57 AM

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.

david_ross 03-10-2005 07:10 AM

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.

reddazz 03-10-2005 08:17 AM

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


All times are GMT -5. The time now is 06:07 AM.