This tutorial explains Linux “users” command, options and its usage with examples.
users – print the user names of users currently logged in to the current host
Output who is currently logged in according to FILE. If FILE is not specified, use /var/run/utmp. /var/log/wtmp as FILE is common.
users [OPTION]… [ FILE ]
display this help and exit
List logged in users
Note : As only one user is logged on, hence only one username is displayed, else a space seperated list of users is displayed.
Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.
Participate in the Sanfoundry Certification contest
to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!
, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @