2016-01-02 01:09:44 +00:00
|
|
|
# last
|
2015-12-30 22:46:40 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> View the last logged in users.
|
2015-12-30 22:46:40 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- View last logins, their duration and other information as read from /var/log/wtmp:
|
2015-12-30 22:46:40 +00:00
|
|
|
|
|
|
|
`last`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Specify how many of the last logins to show:
|
2015-12-30 22:46:40 +00:00
|
|
|
|
|
|
|
`last -n {{login_count}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- View full login times and dates:
|
2015-12-30 22:46:40 +00:00
|
|
|
|
|
|
|
`last -F`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- View the last login by a specific user:
|
2015-12-30 22:46:40 +00:00
|
|
|
|
|
|
|
`last {{user_name}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- View the last reboot (last login of the pseudo user reboot):
|
2015-12-30 22:46:40 +00:00
|
|
|
|
|
|
|
`last reboot`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- View the last shutdown (last login of the pseudo user shutdown):
|
2015-12-30 22:46:40 +00:00
|
|
|
|
|
|
|
`last shutdown`
|