last
UsersFundamentals In real LinuxShow recent logins
Name: last: the latest logins
This command needs a real Linux system; you can practise it in real Linux mode.
Description
last shows recent logins and logouts from /var/log/wtmp, including reboots (last reboot); useful for security audits.
Syntax
last [OPTION]... [USER]Common options
| -n / --limit NUM | Show N entries |
| USER | Only one user’s logins |
| reboot | Show reboots |
| -x / --system | Also show shutdowns and run-level changes |
| -F / --fulltimes | Full login and logout dates and times |
| -i / --ip | Show addresses instead of host names |
| -s / --since TIME | Only since a time, e.g. -s yesterday |