Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-30-2014, 01:09 PM   #1
LQ Newbie
Registered: Apr 2014
Posts: 2

Rep: Reputation: Disabled
Smile Linux commands to print the number of users & number of processes!!?

How R U every one ??

i have a small Q about two Commands >>

Are There a command for :
Print out the number of all running processes on the system


Are There a command for :
Print out the number of all users defined on the system

i just need this two commands please if it exist.
i need it in bash shell .. Linux operating system

Thank you very much,, happy to become a member in this great forum .
Old 04-30-2014, 01:11 PM   #2
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,167

Rep: Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890
1. i would look into ps (and maybe pipe it into wc ?)

2. probably /etc/passwd is a good place to start.
Old 04-30-2014, 01:15 PM   #3
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.1, LFS-current, NetBSD 6.1.3
Posts: 272

Rep: Reputation: 103Reputation: 103
Print out all processes
ps aux
Print out all users
cat /etc/passwd
Old 04-30-2014, 01:59 PM   #4
LQ Newbie
Registered: Apr 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you very much .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
BASH: rearrange lines in a file by line number & print in that order SilversleevesX Linux - Newbie 7 09-20-2011 08:31 PM
How do you print the number of processes that each user is currently running in Unix? Duo11 Linux - General 5 03-07-2011 01:25 AM
Identify and explain the major number, minor number, and revision number in Linux... turbomen Linux - Newbie 1 11-16-2010 03:48 AM
Controlling memory/number of processes for LDAP users Neruocomp Linux - Server 3 06-29-2009 06:01 PM
I need to set a max number of processes for users zahadumy Linux - Software 1 11-15-2005 01:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration