finger command in Terminal

Hello,

I tried to use the Unix command 'finger' in the Terminal (Apple Terminal). Via Fast User Switching were three persons logged in but the finger command gave me only one user. Only the user who had a terminal window open was displayed by 'finger'.

My question: which command can be used from Terminal.app to show the actually logged in users?

Posted on Apr 3, 2006 4:26 AM

7 replies

Apr 4, 2006 2:09 AM in response to Community User

Michael

interstingly enough 'who' and 'users' sho wwho is logged on in a GUI session
Then they must also be logged in to a Terminal session.

For example:
<pre>

ibook:~ michaelc$ users
michaelc
ibook:~ michaelc$ ps -ax -o uid=0,user|sort -u|awk '$1>500 {print $2}'
michaelc
jdoe

</pre>Looking at the 'who' output shows not only the 'console' login, but the 'ttypn' logins. But users without a tty login are not listed: 'jdoe' doesn't have a 'tty' session: <pre>

ibook:~ michaelc$ ps -ax -o uid=0,user,tty|sort -u|awk '$1>500 {print $2, $3}'
michaelc ??
michaelc ttyp1
jdoe ??

</pre>The '??' is the console (or GUI) login.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

finger command in Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.