Linux commands: Difference between revisions

Jump to navigation Jump to search
Line 183: Line 183:


=== Show the process list & kill the process ===
=== Show the process list & kill the 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>
# {{kbd | key=top }} "display Linux tasks" for {{Linux}} or {{kbd | key=<nowiki>top -a</nowiki> }} "Sort by memory usage" for {{Linux}}
# {{kbd | key=top }} "display Linux tasks" for {{Linux}} or {{kbd | key=<nowiki>top -a</nowiki> }} "Sort by memory usage" for {{Linux}}
# keyin {{kbd | key=q}} to leave the process list
# keyin {{kbd | key=q}} to leave the process list
# find which process to be killed. Keyin: {{kbd | key=kill -101 PID}} to kill the process with PID number: 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]</ref>
# find which process to be killed. Keyin: {{kbd | key=kill -101 PID}} to kill the process with PID number: 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]</ref>


=== Search matched text of command output ===
=== Search matched text of command output ===

Navigation menu