Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

w

Show logged-in users and their activity

Syntax

w [OPTION]... [USERNAME]

Common Options

-hNo header
-uIgnore username
-sShort format
-fToggle FROM field
-iShow IP address

Common Examples

w

Show all logged-in users

w username

Show specific user

w -h

No header line

w -s

Short format

w -i

Show IP addresses

Related Commands

Related Tools

More Code & Dev Tools