To list all the current processes, starting from the most CPU intensive
$ top -o %CPU
Once you have identified the process, take not of the PID shown in the leftmost column.
You should see something similar to the image below
In our example, the bash script with PID 1435719 is consuming 100% CPU - out of 1 of 4 cores. (see first entry of the image above)
The command ps displays information about a selection of the active processes.
We can pipe ps to grep to obtain a clear-cut list
of the processes we are looking for.
$ ps aux | grep 1435719
The kill command can be used to stop a process.
Top comments (0)