Wednesday, November 13, 2013

Lastlog Command In Linux

Lastlog Linux Command Examples

Command: lastlog

Command Usage: reports the most recent login of all users or of a given user

Command Syntax: # lastlog options

Examples Of Lastlog Command:

1. To print only lastlog records older than 5 days

    $ lastlog -b 5

2. To print help info of this command

    $ lastlog --help

3. To print the login information 5 days ago

    $ lastlog -t 5

4. To display the login details of specified user

    $ lastlog -u username

Lastlog Command In Linux

No comments:

Post a Comment

Linux Tips and tricks,Online Linux Helpers