Linux commands: Difference between revisions

Jump to navigation Jump to search
No change in size ,  23 April 2022
m
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 '名稱' | awk '{print $2}')</nowiki>}}
* {{kbd | key=<nowiki>sudo kill $(ps aux | grep '<NAME>' | awk '{print $2}')</nowiki>}}


=== Find process running on port ===
=== Find process running on port ===
Anonymous user

Navigation menu