Display recent login records.
Section: Users Groups and Sessions
Show login history
bash
bash
last -a | headExplanation
Useful for forensic review and access audits.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Users Groups and Sessions