{ 23 comments… read them below or add one }

1 Ronald March 31, 2009 at 11:52 am

I only knew the ‘w’ command, so the rest is new for me!

I just wanna say i like your blog, and keep posting :)


2 Ramesh March 31, 2009 at 11:54 pm


I’m glad you learned some new tips from this article. I sincerely appreciate your nice comments about this blog.

3 Anonymous April 2, 2009 at 12:18 pm

Thank you for posting this blog.It is very useful for me. Keep on posting

4 Miguimon April 9, 2009 at 9:58 am

I liked the “who mom likes” command, I actually did not know about this one. Cool :)

5 Ramesh April 10, 2009 at 3:33 pm


“who mom likes” and “who mom hates” are exactly the same as “who am i”. As long as there are two arguments next to who, it will work. :)

6 jennifer April 13, 2009 at 12:03 am

I know this blog from your free ebook, ‘Linux 101Hacks’, Cool. I prefer ues who, whoami and w. Never know there are so many other commands. thank you for so detailed explaining.

7 Marko July 8, 2009 at 4:35 pm

Lots of stuff to learn in Linux ( I’ve started 2 years ago) and still don’t know nothing….
But thanks to guys like Ramesh who are willing to learn us for free I slowley makeing a progress…

ps.: my web site is in Slovenian language so visitor probably won’t understand it but if someone is intrested there are photos of my kids (triplets) and so on….

8 Ramesh Natarajan July 8, 2009 at 9:57 pm

@Jennifer, Thanks for the comments. I’m glad that you found this blog and the free eBook helpful.

@Marko, Thanks for the very kind words. I’m happy that you find this site helpful in your Linux learning process. I did visit your site and saw pictures of your kids. They are very cute. I’m sure they are keeping you super busy. :)

9 Marko July 9, 2009 at 2:48 am

thanks you for taking the time and visit my website, which was first started in year 2000 when my kids were born, just as an experiment and it was running om my desktop pc (winXP and Apache) without registerd domain….just for friends to whom I’ve told the address of the site….
Later on when I purchased an Asus router and find out that is capable of running all kind of stuff on linux including web server, I decided to register my own domain and started with “PC help” site, to help users of Windows…; later when my kids joind Judo club I was asked if I would be able to make webpage for them so Istarted with Judo page ( now the page which I edit most frequently)
And here is the best thing out of all this: I started to learn Linux.

That was a bit of history, I hope my English is understandable, and I hope I was not to boring….


10 Ramesh Natarajan July 14, 2009 at 10:28 pm

@Marko, Thanks for sharing your personal journey about your website. It is very interesting story. Like you’ve mentioned “Learning Linux” is always the fun part and looks like you did that while having fun and building your website.

11 Yaggi December 3, 2009 at 7:27 pm


What is the command to view all the users in a machine either logged-in or log out.? What I have in mind is to go to home directory and issue an ls command.

ALso, how to view those hidden accounts?

12 symo February 12, 2010 at 6:47 am

Thanks bro!!! U making us be who we will be soon….Thanks.

13 Anitha March 4, 2010 at 1:22 am

Thanks for this article … ths is very intersting i want to know more about user login…
pls publish article lik ths about User Log out what happens


14 Syed aown raza May 31, 2010 at 5:06 am

can any body tell me how to find all logged-in users with usernames of at least four characters

15 JOshi MP July 10, 2012 at 1:05 am

Do we have any option to find out the user logged in as a FTP user . Is there any way to find out the user loged in using FTP to the server other than looking into ftp server logs ?


16 Aditya October 10, 2012 at 7:14 am


I have a unix script with the below content, But I am not able to identify it .

Can anyone help me out.
jagmsgbp 20411 21312 0 16:38:19 pts/2 0:00 /bin/ksh ./mq_sweep.ksh 2 10 2 5


17 Anthony November 14, 2012 at 4:24 pm

Very useful. Thanks :)

18 PRASHANT September 18, 2013 at 12:56 am

Can you help me in writing a java program that list all the logged in users in my linux system the condition is that I can not use system calls….plz help Me

19 Wakatana October 20, 2013 at 1:19 pm

This wont prit users logged throught X sessions

20 vaibhav singh February 10, 2014 at 4:14 am

concise and informative. keep up!

When I get [priv] as following. What does it mean?

ramesh pts/0 dev-db-server 17:51 sshd: ramesh [priv]

If This is a way to hide user activity? If so how can I unhide :D

21 Deiveegaraja March 31, 2014 at 5:15 am

Very useful.. Thanks for the article. :-)

22 Akshay April 30, 2014 at 3:41 am

Dear All,

I want to create an script in which i have to Get the list of all users logged in some machine from 22/04/2014 to 29/03/2014.

Can soem one please help me out

23 Joe December 19, 2014 at 1:51 pm

Good info, but what if you wanted to know all users running commands?
None of those options show service accounts.

I use the following to get a list of all users running commands.
ps -eo user |sort -u
I can then loop through each user and get stats like total cpu, & mem consumption, total number of processes spawned by user ect.


Leave a Comment

Previous post:

Next post: