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