954,234 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

List User Command

Hi all, I am trying to figure out the users logged in to our general server at work. Is there a command or string of commands that lists users (only once if logged in multiple times) in alphabetical order with no stats behind the username?

dem10
Newbie Poster
11 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

Hello,

the typical ones that come to mind:

who
last

If you need only parts of the output, pipe them through an awk.

maba001
Junior Poster in Training
60 posts since Jun 2008
Reputation Points: 9
Solved Threads: 9
 

try
who | sort

alaa sam
Junior Poster
135 posts since Nov 2010
Reputation Points: 8
Solved Threads: 10
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: