Linux commands: Difference between revisions
Jump to navigation
Jump to search
m
→Show the process list & kill the process
| Line 275: | Line 275: | ||
Kill the process by process name<ref>[https://stackoverflow.com/questions/3510673/find-and-kill-a-process-in-one-line-using-bash-and-regex Find and kill a process in one line using bash and regex - Stack Overflow]</ref> | Kill the process by process name<ref>[https://stackoverflow.com/questions/3510673/find-and-kill-a-process-in-one-line-using-bash-and-regex Find and kill a process in one line using bash and regex - Stack Overflow]</ref> | ||
* {{kbd | key=<nowiki>sudo kill $(ps aux | grep ' | * {{kbd | key=<nowiki>sudo kill $(ps aux | grep '<NAME>' | awk '{print $2}')</nowiki>}} | ||
=== Find process running on port === | === Find process running on port === | ||