Krishna Logo
qa training in canada now
Divied
Call: Anusha @ 1 (877) 864-8462

 

Latest News
Home Navigation Divied
INTERVIEW Navigation Divied UNIX INTERVIEW QUESTIONS Navigation Divied How to check all the running processes in UNIX?
How To Check All The Running Processes In UNIX?
How to check all the running processes in UNIX?

Ans: The standard command to see this is [ps]. But [ps] only shows you the snapshot of the processes at that instance. If you need to monitor the processes for a certain period of time and need to refresh the results in each interval, consider using the [top] command.
$> ps –ef

If you wish to see the % of memory usage and CPU usage, then consider the below switches

$> ps aux

If you wish to use this command inside some shell script, or if you want to customize the output of [ps] command, you may use “-o” switch like below. By using “-o” switch, you can specify the columns that you want [ps] to print out.

$>ps -e -o stime, user, PID, args, %mem, %cpu


Shadow Bottom
 
 
© 2005 -