LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools Search this Thread
Old 01-22-2009, 04:15 AM   #1
ponna85
LQ Newbie
 
Registered: Jan 2009
Posts: 9
Thanked: 0
Question urgent


[Log in to get rid of this advertisement]
how many number of process will b running(approx) when a linux system is idle.or how can i find the system is idle by prgm..

Last edited by ponna85; 01-22-2009 at 04:17 AM..
ponna85 is offline     Reply With Quote
Old 01-22-2009, 04:19 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,516
Thanked: 44
If the system is idle then 0 process are running or it is not idle. You can find that the system is idle when ps -ef only reports ps -ef, but then it is not idle anymore because it runs ps -ef and to run ps -ef you need to run bash. Why is it urgent please?

Last edited by Agrouf; 01-22-2009 at 04:22 AM..
Agrouf is offline     Reply With Quote
Old 01-22-2009, 06:04 AM   #3
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147
Thanked: 7
Use:
Code:
top
to check processes that are running. Checkout
Code:
man top
for top options.

In any case if a system has a desktop manager (KDE/gnome) running then it'll have process 0 (init), all services that you have enabled (web server, samba, sshd etc), X server, desktop environment (along with its children such as panel, menus etc) running.
rizwanrafique is offline     Reply With Quote

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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 11:21 AM
Urgent Question Regarding Urgent Questions! Need Help Now! Crashed_Again LQ Suggestions & Feedback 11 10-17-2007 09:07 PM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 03:22 AM


All times are GMT -5. The time now is 06:13 PM.

Main Menu
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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration