草庐IT

linux - 如何在 Linux 上按名称而不是 PID 杀死进程?

这个问题在这里已经有了答案:Findandkillaprocessinonelineusingbashandregex(30个回答)关闭去年。有时当我尝试启动Firefox时,它会显示“Firefox进程已在运行”。所以我必须这样做:jeremy@jeremy-desktop:~$psaux|grepfirefoxjeremy745125.027.417053665680?Sl22:391:18/usr/lib/firefox-3.0.1/firefoxjeremy75780.00.33004768pts/0S+22:440:00grepfirefoxjeremy@jeremy-des

linux - 如何在 Linux 上按名称而不是 PID 杀死进程?

这个问题在这里已经有了答案:Findandkillaprocessinonelineusingbashandregex(30个回答)关闭去年。有时当我尝试启动Firefox时,它会显示“Firefox进程已在运行”。所以我必须这样做:jeremy@jeremy-desktop:~$psaux|grepfirefoxjeremy745125.027.417053665680?Sl22:391:18/usr/lib/firefox-3.0.1/firefoxjeremy75780.00.33004768pts/0S+22:440:00grepfirefoxjeremy@jeremy-des