how to get Linux users history by root login

March 22, 2011 at 01:46:09
Specs: Linux i686
how to get users history by root login

See More: how to get Linux users history by root login

Report •

#1
March 22, 2011 at 01:59:50
What exactly do you mean by "users history"?

Report •

#2
March 22, 2011 at 12:35:03
If you are asking about tracking user history from the bash/ksh command line, the commands are stored in a file pointed to by environmental variable HISTFILE

The number of commands retained in HISTFILE is defined in another environmental variable HISTSIZE:

Online, article Archiving Korn Sell History Files
describes a shell script that sets a user's HISTFILE and archives it when he or she logs out. It is rather involved, but the article's code should work with bash.


Report •
Related Solutions


Ask Question