[lkml]   [2001]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: How can I know the number of current users in the system?
Hi Wei.

> I have a problem not clear: Is there any counter for the user number
> in linux?

> I want to do anexperiment which will get the number of current user
> in the system and try fair-share scheduling based on it. I read the
> sys.c and user.c but cannot find a counter for it. Is there any
> counter for this things?

Here's a simple shell command to provide that information:

who | wc -l

Try it and see...

Best wishes from Riley.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:12    [W:0.045 / U:1.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site