Friday, October 3, 2008

Listing the Last Times a User Logged In

To output a list of top 10 recent system users:

$ last | head

To output a list of last 10 logins of a user (say: mitesh):

$ last mitesh | head

Note: This command is very useful in determining who has
logged in the system at particular moment. Helpful in forensics ;)

No comments: