Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to sort the output of the who command but I guess I'm kinda lost on this one.

I want to sort it based on who just logged in.

Thanks

share|improve this question
    
Can you give us some sample output and explain which fields you want to sort on exactly? (Does who | sort -k3 do what you want?) –  Etan Reisner Jul 11 '13 at 19:27
add comment

1 Answer 1

Do you try using sort command:

who | sort -r -k3
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.