Show login history
low risk
Reads /var/log/wtmp to show past logins, reboots and shutdowns.
| Flag | Meaning |
|---|---|
-n | Limit number of entries |
-x | Include shutdown/runlevel changes |
-F | Full timestamps |
last -n 20Recent logins · explain & risk-check →last rebootReboot history · explain & risk-check →Reference text is hand-written and may be incomplete — check man last for your version. Test destructive commands on a non-production system first.