//View Tip #499
Similar Tips
» Command examples from shell-fu
» Sort a file by line length
» List non-system users
» Check low space
» Random password generator.

 

Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
The line below will give you the real names of the users currently logged in:

grep -f <(w -h|awk '{print $1}') <(getent passwd) | awk -F":" '{print $5}'


View Comments »




Comments 

Add your comment

Comments are currently disabled
No Comments

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit