LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   urgent (https://www.linuxquestions.org/questions/linux-newbie-8/urgent-699064/)

ponna85 01-22-2009 03:15 AM

urgent
 
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..

Agrouf 01-22-2009 03:19 AM

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?

rizwanrafique 01-22-2009 05:04 AM

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.


All times are GMT -5. The time now is 06:38 AM.