Linux commands: Difference between revisions

Jump to navigation Jump to search
m
Line 262: Line 262:




=== Show the process list & kill the process ===
=== Show the process list ===
Show the process list & kill the high-resource-consumption process<ref>[http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html How do I Find Out Linux CPU Utilization? - nixCraft]</ref><ref>[http://www.cyberciti.biz/faq/show-all-running-processes-in-linux/ Show All Running Processes in Linux]</ref>
Show the process list & kill the high-resource-consumption process<ref>[http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html How do I Find Out Linux CPU Utilization? - nixCraft]</ref><ref>[http://www.cyberciti.biz/faq/show-all-running-processes-in-linux/ Show All Running Processes in Linux]</ref>
# Display the process list for {{Linux}} & {{Mac}}
# Display the process list for {{Linux}} & {{Mac}}
Line 269: Line 269:
# keyin {{kbd | key=q}} to leave the process list
# keyin {{kbd | key=q}} to leave the process list


 
=== Kill the process ==
Find which process to be killed. And then keyin the process ID (PID):  
Find which process to be killed. And then keyin the process ID (PID):  
* {{kbd | key=kill <PID>}} or {{kbd | key=kill -<PID> PID}}. To kill the process with PID number: 101, enter {{kbd | key=kill 101}}. <ref>[http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/ Kill Process in Linux or Terminate a Process in UNIX / Linux Systems], [https://linux.die.net/man/1/kill kill(1): terminate process - Linux man page]</ref>
* {{kbd | key=kill <PID>}} or {{kbd | key=kill -<PID> PID}}. To kill the process with PID number: 101, enter {{kbd | key=kill 101}}. <ref>[http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/ Kill Process in Linux or Terminate a Process in UNIX / Linux Systems], [https://linux.die.net/man/1/kill kill(1): terminate process - Linux man page]</ref>
Anonymous user

Navigation menu