lastb

Show failed login attempts

low risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Reads /var/log/btmp. Needs root. See the flags and examples below, and run `man lastb` for the full reference.

Common flags
FlagMeaning
-nLimit entries
Examples
sudo lastb | headRecent failures · explain & risk-check →
Related
last fail2ban-client
Open the full explainer →More in System & Processes

Reference text is hand-written and may be incomplete — check man lastb for your version. Test destructive commands on a non-production system first.