Quote:
Originally Posted by abhijeetdutta
why you guys not understanding i am having 250 user and i want to know how many times they logged and logged out...
|
Excuse me, we people expect polite language to be used in forums. We are not paid to help you.
Quote:
Originally Posted by abhijeetdutta
how can i know in rhel that which user has login how many times in the server.
|
I understand English well and I have answered your question with an example which was in your first post.
Now, you need to know the logged in and logged out time. Here it is. You can use this command, to find logged in and logged out time of user
rajeev_k. Second Column is the logged in time and third column is logged out time.
Code:
-sh-3.00$ last | grep rajeev_k | awk '{print $1 " " $7 " " $9}'
rajeev_k 14:19 15:56
rajeev_k 22:18 22:33
rajeev_k 18:27 20:47
rajeev_k 17:41 20:49
rajeev_k 17:06 20:48
rajeev_k 17:03 20:48
rajeev_k 16:57 20:49
rajeev_k 16:50 16:55
rajeev_k 14:31 14:36
rajeev_k 00:06 04:06
rajeev_k 21:43 23:49
Hope this helps.