Find the answer to your Linux question:
Results 1 to 5 of 5
Hello How are you my friends ? i have a small Question about two Commands >> Are There a command for : Count all running processes And Are There a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2014
    Posts
    2

    Linux commands to print the number of users & number of processes!!?


    Hello
    How are you my friends ?

    i have a small Question about two Commands >>

    Are There a command for :
    Count all running processes


    And

    Are There a command for :
    Count all users defined



    Thank you very much,, happy to become a member in this great forum .
    Last edited by wawaba7; 04-30-2014 at 06:28 PM.

  2. #2
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    1,658
    I noticed you posted this twice. It's really just one big forum and the individual "forums" are just to clarify what you're seeking - in other words it's not good for the forum to have the same post twice.

    Count processes:
    Code:
    ps -e | wc -l
    Count users:
    Code:
    cat /etc/passwd | wc -l
    Note: many of the users are not embodied users.

  3. #3
    Linux Engineer docbop's Avatar
    Join Date
    Nov 2009
    Location
    Woodshed, CA
    Posts
    949
    Welcome.

    Might be just me, but this isn't a chat session you don't need to use one letter shortcuts like R, U, ?, you can write the words out.
    A lion does not lose sleep, over the opinion of sheep.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Apr 2014
    Posts
    2
    i am so sorry about placing the post twice
    in two different sections
    because i don't know where is the right one

    and thank you very much for your help
    i am a beginner in Linux and i really like it
    and wont to learn more about it
    and i well be an active user in this forum

    thank you again gregm ..

    docbop .. i modified the subject

  6. #5
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    1,658
    Welcome to the forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •