Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

users(1) [posix man page]

USERS(1)                                                           User Commands                                                          USERS(1)

NAME
users - print the user names of users currently logged in to the current host SYNOPSIS
users [OPTION]... [FILE] DESCRIPTION
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. --help display this help and exit --version output version information and exit AUTHOR
Written by Joseph Arceneaux and David MacKenzie. REPORTING BUGS
GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report users translation bugs to <http://translationproject.org/team/> COPYRIGHT
Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
getent(1), who(1) Full documentation at: <http://www.gnu.org/software/coreutils/users> or available locally via: info '(coreutils) users invocation' GNU coreutils 8.28 January 2018 USERS(1)

Check Out this Related Man Page

USERS(1)							   User Commands							  USERS(1)

NAME
users - print the user names of users currently logged in to the current host SYNOPSIS
users [OPTION]... [FILE] DESCRIPTION
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. --help display this help and exit --version output version information and exit AUTHOR
Written by Joseph Arceneaux and David MacKenzie. REPORTING BUGS
Report users bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> Report users translation bugs to <http://translationproject.org/team/> COPYRIGHT
Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
The full documentation for users is maintained as a Texinfo manual. If the info and users programs are properly installed at your site, the command info coreutils 'users invocation' should give you access to the complete manual. GNU coreutils 8.5 February 2011 USERS(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

user issues

Hi there, I'm a beginner with UNIX and have to manage a set of 15 users. The problem we have is that there are only 15 licenses for these users, so occasionally they get locked out and can't log back on. I've been using the ps -ef|grep command to check the users, as well as the w commnand,... (6 Replies)
Discussion started by: Lmm05
6 Replies

2. Shell Programming and Scripting

last logged on info

Hi how can I know the details of when valid system users last logged on? thanks (1 Reply)
Discussion started by: nokia1100
1 Replies

3. Shell Programming and Scripting

A small minix question

First af all hi. i want to create a batch script which inform when users log in last time on system or if they are online when they logged in. I want ot use a file .users which has the usernames of users. i want to print for example peter is ONLINE: Logged in on Wed Feb 11 07:47 alex... (2 Replies)
Discussion started by: sasa
2 Replies

4. Shell Programming and Scripting

to find the number of users logged in

Hi, can u say to display the number of users that logged before me. thanks (10 Replies)
Discussion started by: shanshine
10 Replies

5. UNIX for Dummies Questions & Answers

displaying the users

how can i list the users( and only those users) who logged in more than once? thanks in advance... (1 Reply)
Discussion started by: needyourhelp
1 Replies

6. Shell Programming and Scripting

Unique Result

Good day folks, I am trying to get the logged in users with the 'users' command, but I am having difficulty in making the name of users to appear only ONCE even if they are currenly logged in more than one terminal. I could not use uniq becuase that only work with lines, but the users command... (6 Replies)
Discussion started by: unibboy
6 Replies

7. Programming

Get the list of logged in users

How can I get the list of logged in users in the system programmatically? I can get the list with 'who' or 'users' commands but I need to get the list programmatically... May someone help, please? Thanks in advance. (2 Replies)
Discussion started by: xyzt
2 Replies

8. Shell Programming and Scripting

Bash Help: users who are not logged into the system to display

A Newbie here, I am working on a script and am having problems with the else part of the script. I can't get the users who are not logged into the system to display on the screen with their username and the text "The user is not logged in". I am sure it is something simple and stupid, but I... (5 Replies)
Discussion started by: rchirico
5 Replies

9. UNIX for Dummies Questions & Answers

How to do i change the user permissions..

Hi everyone, There are couple of users of which i need to give 2 of the users admin rights so that they are able to run the administration commands like "zoneadm" and locale. When logged in as root i am obviously able to do that.please suggest any way by which the other 2 user's permissions... (1 Reply)
Discussion started by: sankasu
1 Replies

10. UNIX for Dummies Questions & Answers

Need to change permissions

Hi everyone, There are couple of users of which i need to give 2 of the users admin rights so that they are able to run the administration commands like "zoneadm" and locale. When logged in as root i am obviously able to do that.please suggest any way by which the other 2 user's permissions can... (3 Replies)
Discussion started by: sankasu
3 Replies

11. Shell Programming and Scripting

Get online users OpenSuse

Hello, is there any Shell Command to get a list of all the online users currently online and logged in on my machine? finger and who both show a log of people that logged in, not the ones that are currently online. (3 Replies)
Discussion started by: Aliboy
3 Replies

12. UNIX for Dummies Questions & Answers

how to find top 3 users currently logged on

For the first 3 users only that are currently logged in output their effective user id. thank you. (6 Replies)
Discussion started by: whyatepies
6 Replies

13. Programming

compiling coreutils

Hi gurus I am trying to compile coreutils for studying purposes. I downloaded package (exact version which target system already contains) and tried following: ./configure make but compiling ands with some header file dependency problem. Then I tried compile particular binary cd... (9 Replies)
Discussion started by: wakatana
9 Replies

14. Shell Programming and Scripting

Finding out users logged in between 10:00AM and 11:00AM

Hi All, I have a specific requirement wherein I want a list of users who have logged in between 10:00 AM and 11:30 AM. Thanks, vini (4 Replies)
Discussion started by: vini kumar
4 Replies

15. Proxy Server

Same title (almost) same IP address registered for two new users

I've noticed there are two threads:- https://www.unix.com/post-here-to-contact-site-administrators-and-moderators/250894-execute-shell-script-if-string-found-while-executing-then-exit.html#post302916404... (2 Replies)
Discussion started by: rbatte1
2 Replies