1

Using w; how to list find all the users

view story
linux-howto

http://www.unix.com – Hi, On my system, I have about 75 users. Some uers have two or three sessions on the same systems. when I do w, it shows all the sessions. Is there any way to find only the users and not worry about how many sessions. For example: you can see sshe has four connection. I only want to know the users. From the results below, I am looking for sak, apr, sshe, xzha, peter. I tried doing w |grep -v but not working. Code: w |more  16:06:52 up 568 days, 21:26, 75 users,  load average: 0.07, 0.10, 0.05 USER    TTY      FROM      (HowTos)