$
Learn Linux handbook
en
XP:0
Quest 143Session Auditor
+200 XP

Auditing Active Sessions (who, w & last)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

Concept & Overview

When investigating unexpected system load or performing security audits on multi-tenant servers, you must know who is logged in and what commands they are executing.

- who: Prints logged-in usernames, terminal devices (TTY/PTS), and login timestamps.
- w: Comprehensive snapshot showing system uptime, load averages, logged-in users, and their currently running processes.
- last: Parses /var/log/wtmp to show recent system reboot and user login history.

Let's audit server activity. Run who to list active users, w to view their active processes and load, and last to inspect recent login history.

Command Syntax Reference

Command / SyntaxDescription
whoDisplay logged in users
wDisplay active users and their running processes
lastDisplay history of recent user logins

Verification Objectives

These conditions will be automatically verified when you run commands inside the interactive terminal simulator:

  • ○
    Run who command
  • ○
    Run w command
  • ○
    Run last command

Ready to complete Quest 143?

Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.