背景
经常需要根据进程名字搜索获取pid。ps | grep。进一步要删除使用kill
是否有比他更方便的工具?
pgrep test.py #列出pid
pgrep test.py -l #列出pid和名字
pgrep tesy.py -c #列出包含test.py的进程数量
pkill test.py
更多man信息:


背景
经常需要根据进程名字搜索获取pid。ps | grep。进一步要删除使用kill
是否有比他更方便的工具?
pgrep test.py #列出pid
pgrep test.py -l #列出pid和名字
pgrep tesy.py -c #列出包含test.py的进程数量
pkill test.py
更多man信息:



被折叠的 条评论
为什么被折叠?