users command in Linux with Examples
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 mesage and exit.
users --help
- users –version: This option will show the version information and exit.
users --version
Recommended Posts:
- Users in Linux System Administration
- sum command in Linux with Examples
- atq command in linux with examples
- tar command in Linux with examples
- ln command in Linux with Examples
- id command in Linux with examples
- w command in Linux with Examples
- wc command in Linux with examples
- top command in Linux with Examples
- gs command in Linux with Examples
- last command in Linux with Examples
- rm command in Linux with examples
- scp command in Linux with Examples
- less command in Linux with Examples
- cvs command in Linux with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.






