0
点赞
收藏
分享

微信扫一扫

Linux kill掉ps aux抓取到的命令

九点韶留学 2022-03-30 阅读 98
bash

解决方法

kill $(ps aux | grep '关键词' | awk '{print $2}')

命令说明

使用:

ps aux | grep '关键词'

抓取到相关的全部命令

参考

  • how to grep a specific process from ps in linux?:https://stackoverflow.com/questions/61105343/how-to-grep-a-specific-process-from-ps-in-linux
举报

相关推荐

0 条评论