Show failed login attempts
low risk
Reads /var/log/btmp. Needs root. See the flags and examples below, and run `man lastb` for the full reference.
| Flag | Meaning |
|---|---|
-n | Limit entries |
sudo lastb | headRecent failures · explain & risk-check →Reference text is hand-written and may be incomplete — check man lastb for your version. Test destructive commands on a non-production system first.