System and processes

The last command

Shows the history of logins and logouts. Useful to know when the machine was used and to spot unusual access.

Syntax

last [usuario]

Copy-ready examples

$ lastSession history

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • last reads a log that can rotate; on very old machines it may have no data.

Related commands

FAQ

What does reboot mean in the list?

It is a system reboot, not a user session.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course