Linux

last

SafeShow login history

last -n 20

Login/logout/reboot history, newest first. lastb (root) shows failed logins — useful for intrusion checks.

Examples

  • last rebootReboot history only

Syntax

last [-n N] [user]

Before you run it

Read only.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store