ps command displays the process ID (pid=PID), the terminal associated with the process (tname=TTY), the cumulated CPU time in hh:mm:ss format (time=TIME), and the executable name (ucmd=CMD). Ps axo ruser,%mem,comm,pid,euser | sort -nr | head -n 10īy default, ps selects all processes with the same effective user ID (euid=EUID) as the current user and associated with the same terminal as the invoker. Run the following command to list top 10 CPU and Memory consuming processes: List Top 10 CPU & Memory Consuming Processes Similarly you can also print the top 10 CPU consuming processes. %mem Ratio of the process’s resident set size to the physical memory on the machine, expressed as a percentage.Currently, it is the CPU time used divided by the time the process has been running (cputime/realtime ratio), expressed as a percentage. %cpu CPU utilization of the process in “#.#” format.That is, it selects processes that are children of those listed in pidlist. ![]() This selects the processes with a parent process ID in pidlist. Format is a single argument in the form of a blank-separated or comma-separated list, which offers a way to specify individual output columns. Option of ps allows to specify the output format. ![]() Explaining the command and all the options users:
0 Comments
Leave a Reply. |