hello sir,
suppose we like to store history of user in file. is there any possibility to do this using shell script and also shell script to store multiple uers history at a time using shell script
Yes. The history of commands executed for the users will be stored in the .bash_history file inside the home directory. Also the number of commands to be stored in history can be configured using the H!ISTSIZE property. Some additional useful commands can be found on http://www.unixonthego.com/history-command-with-unix/ website.
Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0