You are not logged in.

#1 2006-02-04 22:45:31

pixel
Member
From: Living in the Server Room
Registered: 2005-02-21
Posts: 119

w or who don't show list of users

w or who don't show a proper list of logged users

# w
23:46:22 up  5:48,  1 user,  load average: 0.49, 0.28, 0.14
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT

although i got 2 users logged in, it's really strange..


Favorite systems: ArchLinux, OpenBSD
"Yes, I love UNIX"

Offline

#2 2006-02-05 15:19:42

sh__
Member
Registered: 2005-07-19
Posts: 271

Re: w or who don't show list of users

Most of the programs in Arch are not configured to update /var/run/utmp, which contains the login records that 'w' and 'who' use. If you need to see who is on your system, try 'ps aux' instead.

Offline

#3 2006-02-05 16:02:33

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: w or who don't show list of users

ps aux | awk '{ print $1; }' | sort | uniq

will give you a nice sorted list, easy to read. big_smile

Offline

Board footer

Powered by FluxBB