Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

users(1b) [opensolaris man page]

users(1B)					     SunOS/BSD Compatibility Package Commands						 users(1B)

NAME
users - display a compact list of users logged in SYNOPSIS
/usr/ucb/users [filename] DESCRIPTION
The users utility lists the login names of the users currently on the system in a compact, one-line format. Specifying filename tells users where to find its information; by default it checks /var/adm/utmpx. Typing users is equivalent to typing who -q. EXAMPLES
Example 1 Listing current users example% users paul george ringoexample% FILES
/var/adm/utmpx ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ SEE ALSO
who(1), attributes(5) SunOS 5.11 16 Nov 1998 users(1B)

Check Out this Related Man Page

last(1) 							   User Commands							   last(1)

NAME
last - display login and logout information about users and terminals SYNOPSIS
last [-a] [-n number | -number] [-f filename] [name | tty]... DESCRIPTION
The last command looks in the /var/adm/wtmpx file, which records all logins and logouts, for information about a user, a terminal, or any group of users and terminals. Arguments specify names of users or terminals of interest. If multiple arguments are given, the information applicable to any of the arguments is printed. For example, last root console lists all of root's sessions, as well as all sessions on the console terminal. last displays the sessions of the specified users and terminals, most recent first, indicating the times at which the session began, the duration of the session, and the terminal on which the session took place. last also indicates whether the session is continuing or was cut short by a reboot. The pseudo-user reboot logs in when the system is shutdown and when it reboots. Thus, last reboot gives an approximate record of when the operating system instance was shutdown and when it rebooted. This can be used to calculate the availability of the operating system over time. last with no arguments displays a record of all logins and logouts, in reverse order. If last is interrupted, it indicates how far the search has progressed in /var/adm/wtmpx. If interrupted with a quit signal (generated by a CTRL-), last indicates how far the search has progressed, and then continues the search. OPTIONS
The following options are supported: -a Displays the hostname in the last column. -f filename Uses filename as the name of the accounting file instead of /var/adm/wtmpx. -n number|-number Limits the number of entries displayed to that specified by number. These options are identical; the -number option is provided as a transition tool only and is removed in future releases. ENVIRONMENT VARIABLES
Date and time format is based on locale specified by the LC_ALL, LC_TIME, or LANG environments, in that order of priority. FILES
/var/adm/wtmpx accounting file ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWesu | +-----------------------------+-----------------------------+ SEE ALSO
utmpx(4), attributes(5) SunOS 5.11 24 Jul 2004 last(1)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

IP details for Unix/Linux login clients?

Hi there, I am wondering if by logging in to a unix system, if it is possible to get the IP address of the machine I am connecting FROM. I know how I can do this using the name server, but is this possible without a host lookup?:confused: Thanks, -ghoti (15 Replies)
Discussion started by: ghoti
15 Replies

2. UNIX for Dummies Questions & Answers

Users and processes

Hi All, I am trying to write a script to list all users and their processes. I cant seem to find out how to link the PID to the user. For example if i run ps -a I get a nice list of all the processes running and their PID, but no information about which user is running them. If i use w i... (17 Replies)
Discussion started by: Chiefos
17 Replies

3. Shell Programming and Scripting

Processes and Users

Thx for all the help so far, I really appreciate it, this is the last task I have to do then I am no longer a trainee ^^, which means I can use whatever utility I want. :O I need to write a script that does more or less what is shown below. The Users Name PID TTY TIME CMD 12345 pts/3... (22 Replies)
Discussion started by: barbus
22 Replies

4. Solaris

List all inactive users who has not logged on since last 90 days

I need actuall script which List all inactive users who has not logged on since last 90 days Thanks in advance. Di! (17 Replies)
Discussion started by: haridham
17 Replies

5. Shell Programming and Scripting

Simple script for adding users

Hi guys, I've a simple linux script (made by my friend), which adds users to the system from userlist file. it also creates user home dir and copies certain files to the directory. To be honest, am a newbie in scripting so am unable to fully understand how the script is working. unfortunately,... (30 Replies)
Discussion started by: vish6251
30 Replies

6. UNIX for Dummies Questions & Answers

Removing permissions from all users including owner

Hello all: I will include a "requirement" for an issue I am attempting to solve for my boss. Basically, he would like to know if there is a way to prevent users and owner from editing 'write' script in Vi. - While working in Unix Vi, users would be able to keep all the previous versions... (15 Replies)
Discussion started by: bruski4
15 Replies

7. Shell Programming and Scripting

Running a script as root but with different users inside

Hi All, my script.sh has the below lines, and i need to run the script as root or wam. please tell me if this will work #!/bin/bash sudo -t wam /usr/local/wam/stopwam -r ------- this needs run as wam user /usr/local/web/stopweb -a --- this needs to run as... (18 Replies)
Discussion started by: nanz143
18 Replies

8. What is on Your Mind?

How to encourage emerging users in forum to give better solution:?

Our moderators/admins/users are doing great job by sharing knowledge with each other, they do correct/appreciate us in posts. This poll is to encourage emerging users to go in a better direction, kindly do give your thoughts on same. 1- Giving them a reward/appreciation if they are... (31 Replies)
Discussion started by: RavinderSingh13
31 Replies

9. AIX

Do not allow bypassing users .profile

Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following: ssh -t hostname "bash --noprofile" Is there a way to... (32 Replies)
Discussion started by: omonoiatis9
32 Replies