How many users are currently logged in Linux?

How many users are currently logged in Linux?
Answer
Method-1: Checking logged-in users with ‘w’ command
‘w command’ shows who are logged-in and what are they doing. It displays information about current users on the machine by reading the file /var/run/utmp , and their processes /proc .
 

Tìm kiếm

Back
Top