Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

users command in Linux with Examples

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

users command in Linux system is used to show the user names of users currently logged in to the current host. It will display who is currently logged in according to FILE. If the FILE is not specified, use /var/run/utmp. /var/log/wtmp as FILE is common. 

Syntax: 

 

users [OPTION]... [FILE]

Example: users command without any option will print the users currently logged in. 

 

Options: 
 

  • users –help: This option will display the help message and exit. 

     

users --help
  •  

  •  
  • users –version: This option will show the version information and exit. 

     

users --version
  •  

 

My Personal Notes arrow_drop_up
Last Updated : 22 Apr, 2021
Like Article
Save Article
Similar Reads