history


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting history
# 1  
Old 01-27-2008
history

I need the script that will write to a file all commands which were executed
and the time for all of this commands.
Or maybe it can be done with history, or script utility (bash)?
# 2  
Old 01-27-2008
What you want to do can easily be done in the bash shell. For timestamps, just set HISTTIMEFORMAT. Check out HISTFILE, HISTSIZE, HISTFILESIZE, HISTCONTROL, HISTIGNORE also.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

The Great History of UNIX (1969-1999) | 30 Years of UNIX History | YouTube Video

I am pleased to announce this new video in 1080 HD for UNIX lovers honoring thirty years of UNIX history spanning from 1969 to 1999 presented in 150 seconds (two and a half minutes) in 1080 HD, celebrating the 50th anniversary of UNIX. The Great History of UNIX (1969-1999) | 30 Years of UNIX... (8 Replies)
Discussion started by: Neo
8 Replies

2. UNIX for Dummies Questions & Answers

History to Another file [local user history , but root access]

Hi all, My need is : 1. To know who , when , which command used. 2. Local user should not delete this information. I mean , with an example , i can say i have a user user1 i need to give all the following permissions to user1, : a. A specific directory other than his home... (1 Reply)
Discussion started by: sriky86
1 Replies

3. UNIX for Dummies Questions & Answers

The history command: See other users command history

Can anyone tell this: If two users are logged into the same server from different locations. Is there a way to see the history command of the other user? I tried the history command, but it is showing me only the commands I used. Thanks in advance for your help. Iamnew2solaris (1 Reply)
Discussion started by: iamnew2solaris
1 Replies

4. UNIX for Advanced & Expert Users

History to Another file [local user history , but root access]

Hi all, My need is : 1. To know who , when , which command used. 2. Local user should not delete this information. I mean , with an example , i can say i have a user user1 i need to give all the following permissions to user1, : a. A specific directory other than his home... (3 Replies)
Discussion started by: linuxadmin
3 Replies

5. UNIX for Dummies Questions & Answers

How to review the history and the commands that has been done in this history?

Hello every body, Kindly inform me How Do i find out the time I executed a command previously on UNIX Solaris?? To be more specific and more clear about what i want to know is that I want a command the enables me to know the history and which command i run at this history/time. FYI I used... (5 Replies)
Discussion started by: ahmedamer12
5 Replies

6. Shell Programming and Scripting

History

Hi I am new here.Hope this has not been already posted.I searched,but couldn't find. I am currently learning and using lots of new bash commands,I even check sites and try out commands,or visit folders like /usr/bin and /bin etc and just man many of them and try them. The thing is..I forget some... (7 Replies)
Discussion started by: Vivek788
7 Replies

7. Shell Programming and Scripting

History ??

Hi, How can i see first 3 commands that are there in history {fc -l} ? Thanks (1 Reply)
Discussion started by: varungupta
1 Replies

8. UNIX for Dummies Questions & Answers

History

hi there all , i would like to know what are the other alternatives besides .sh_history file to get all commands typed on console .. Can u help me ? Thanks for all PS : I'm a newbie on this forum :rolleyes: (2 Replies)
Discussion started by: JuniorJack
2 Replies
Login or Register to Ask a Question