Look in your distribution's package manager for packages related to accounting. You will probably find some or all of the following.
acct - GNU accounting utiltiies
net-acct - network accounting utilities
sac - user account activity reporting utilities
You should read the user manuals for each of these.
|