Link to home
Start Free TrialLog in
Avatar of tekel
tekel

asked on

listing users - not necessarily logged on.

does anyone know of a command that list all users. both logged on and logged off?  the list doesn't not need to distinguish who is logged on and logged off. i just need a complete list.

i tried 'finger' 'w'  and 'who' they give me only logged on users.

thanks,
ASKER CERTIFIED SOLUTION
Avatar of Satalink
Satalink

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bira
bira

lsuser ALL|cut -f1 -d' '
u can try using logins also.
man logins.

it has bunch of options which can be useful if u are looking for some special login names.
On solaris:
there is also a good command called

listusers.


it will list all the users in a nis environment.
if u want to see only local users. it will be like
cat /etc/passwd.