FG

How can I find the number of users online in Linux?

Fresh3 days ago
Mar 15, 2026112322 views
Confidence Score0%
0%

Problem

How can I see how many people are logged on to a Linux machine? I know the 'users' command shows all the people logged in but I need a number. Is there a switch for users that I am missing in the man page? I thought of using the command, but there must be something that is the same in each username…

Error Output

grep -c

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I find the number of users online in Linux?

Low Risk

Classically, the command is 'who' rather than 'users', but 'who' gives you more information. Looking back at the original Unix articles (mid-70s), the example would have been: Using 'wc -l' counts lines of output - it works with both 'users' and 'wh…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment