5
Linux常用命令-53:killall
source link: https://xugaoxiang.com/2022/06/15/linux-cmds-53-killall/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
killall
命令使用进程的名称来杀死进程,而且可以杀死一组同名进程。前一节我们介绍过命令 kill
,它是通过进程号来杀死进程,如果要找到进程号,需要使用 ps
等命令再配合 grep
来查找,而 killall
则是把这一过程简单化了。
语法格式:killall [参数]
常用参数:
# 强制杀死所有的 nginx 进程
killall -9 nginx
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK