LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hello
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


And

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, 12:11 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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, 12:15 PM   #3
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

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

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


Reply



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 07: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 12:25 AM
Identify and explain the major number, minor number, and revision number in Linux... turbomen Linux - Newbie 1 11-16-2010 02:48 AM
Controlling memory/number of processes for LDAP users Neruocomp Linux - Server 3 06-29-2009 05:01 PM
I need to set a max number of processes for users zahadumy Linux - Software 1 11-15-2005 12:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:33 PM.

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