I need to know the login history for specific user (i.e. login and logout time), How do I extract this history for a specific date range in Linux ?
|
feedback
|
|
You can try the last command
prints out the login/out history of user john Cheers | |||
|
feedback
|
An example to list all users login from 25 to 28/Aug:
You can also do it for specific user with | |||||||||||
feedback
|
|
If you need to go further back in history than one month, you can read the
The last log output isn't too heavy and relatively easy to parse, so I would probably pipe the output to grep to look for a specific date pattern.
| ||||
|
feedback
|