What Process Owns ~/.bash_history?
I'd like to gather some metrics about command line usage (which commands are most frequently executed, how many commands are being typed in by users, how much time is spend at the CLI, how many attempts at using a command are made before the user gets the right switches, etc, etc) for a group of users on a network.
The values I'm really after are: what commands are issued to the system and what time were they executed. From there I think I can create some baseline statistics. I can easily aggregate & parse /home/*/.bash_history to get the commands but I'd like to know what time each command was run. Is there an alias or a config file where I can request the process owning the .bash_history to also echo/pipe/tee out to a separate file (along with the dates) after the entry in .bash_history is run? Thanks |
@ Reply
Hi there,
I guess you are looking for this: http://www.cyberciti.biz/faq/list-co...n-linuxserver/ http://www.cyberciti.biz/tips/howto-...ccounting.html Make sure you start psacct before it starts capturing the info for you. |
Quote:
|
@ Reply
Well it is there on RHEL6 I just checked using rpm -qa
Also checked on RHEL5 and it is there also and my both RHEL5 and RHEL6 (beta) are not registered ones. |
All times are GMT -5. The time now is 12:24 AM. |