Visit Our UNIX and Linux User Community


Get online users OpenSuse


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Get online users OpenSuse
# 1  
Old 11-03-2009
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.
# 2  
Old 11-03-2009
What qualifies for you the term "online", as opposed to "logged in"?
# 3  
Old 11-03-2009
Well, I have a system running in a network.

The network consist of me and my friend, who's called Tom.

So when he connects and logs in the two logged in users should be:

Tom
Ali
# 4  
Old 11-03-2009
If by "logged in" you mean logged in to an console session, you can get the list by using
Code:
who | cut -d' ' -f1 | sort -u


Previous Thread | Next Thread
Test Your Knowledge in Computers #240
Difficulty: Easy
In 1973, a transatlantic satellite link connected the Norwegian Seismic Array (NORSAR) to the ARPANET, making Norway the first country outside the US to be connected to the network.
True or False?

2 More Discussions You Might Find Interesting

1. AIX

Savevg when users online !!

Hi All, I need to take the backup of non-rootvg using savevg utility. I would like to know, if I can take the backup without shutting down the application & database. Is it possible to take the savevg backup safely when users are working on the system ? Regards. (1 Reply)
Discussion started by: sraj142
1 Replies

2. Shell Programming and Scripting

Using grep with 'who' to find online users

solved (3 Replies)
Discussion started by: subway69
3 Replies

Featured Tech Videos