Linux 批量结束名称匹配的进程
ps aux | grep 'process_test_name' | awk '{print $2}' | xargs kill -9 这里做了什么:ps aux | grep 'process_test_name':查找所有包含“process_test_name”的进程。awk '{print $2}':从输出中提取第二列(即PID)。xargs ki
ps aux | grep 'process_test_name' | awk '{print $2}' | xargs kill -9 这里做了什么:ps aux | grep 'process_test_name':查找所有包含“process_test_name”的进程。awk '{print $2}':从输出中提取第二列(即PID)。xargs ki