LinuxQuestions.org
Help answer threads with 0 replies.
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 02-23-2016, 01:36 AM   #1
pradip4urs
LQ Newbie
 
Registered: Feb 2016
Posts: 1

Rep: Reputation: Disabled
What is the command to know total number of process running on linux system


I just want to know is there any command to know how many process are running on linux system.. Using TOP command we can see the total number of tasks. I have tried this command which bring me the second line of top command output.

#top | sed '2!d'

So i just want to know the command which can print the total number of running processes straight forward.
 
Old 02-23-2016, 01:53 AM   #2
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 517

Rep: Reputation: 245Reputation: 245Reputation: 245
Hello,

If you want a live view of the system, try top. You can also use ps with a couple of options but ps only gives you an instantaneous image of processes. top keeps refreshing its display.

I strongly recommend you read the man pages for top and ps. These programs are extremely useful.

Cheers.
 
Old 02-23-2016, 01:56 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,905

Rep: Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921
I think task and process are two words for the same thing. So I do not really understand your question.
 
Old 02-23-2016, 03:27 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,565

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Did you try putting your question straight into google ... it does come up with a large number of results
 
  


Reply


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
[SOLVED] what does the number 64 mean in the total line with command ls -lat? bugatti Linux - General 2 04-02-2014 04:41 PM
command to view total no. or running process only mayankh Linux - Server 3 11-07-2006 05:39 AM
Command to show each application/process memory usage and its total gn00kie Linux - Enterprise 2 09-21-2006 04:08 AM
how to get Total no of process in system arb Linux - General 1 09-17-2003 09:20 AM
Command to list total number of files. WillieB_72 Linux - General 3 01-29-2003 10:25 PM

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

All times are GMT -5. The time now is 12:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration