I want to monitor
I have 3 user in my linux machine let's say a,b,c .By Using last command I am able to identify list of last logged in user and by w command who is logged in and what they are doing and by history command all command used by particular user all will be shown.
Now I want to write shell script which will show how much time ideal,how much they are logged in and how much command they have run for each user.
How to do this? To Monitor user