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?
Last edited by thund3rstruck; 05-07-2011 at 06:06 PM.