GO KALI FREE
User Management

last Linux Command

Shows the last logged-in users from the system log file.

What does last do?

Shows the last logged-in users from the system log file.

Syntax

last [options]

Practical example

last -n 10

Related User Management

groups

Displays all groups the current user is a member of.

whoami

Displays the username of the currently logged-in user.

groupdel

Deletes an existing group from the system.

who

Shows all users currently logged into the system with login details.

groupadd

Creates a new group on the system.

w

Displays who is logged in and what they are currently doing.