pgrep
pgrep
根据用户给出的信息在当前运行进程中查找并列出符合条件的进程ID(PID)
补充说明
pgrep命令 以名称为依据从运行进程队列中查找进程,并显示查找到的进程id。每一个进程ID以一个十进制数表示,通过一个分割字符串和下一个ID分开,默认的分割字符串是一个新行。对于每个属性选项,用户可以在命令行上指定一个以逗号分割的可能值的集合。
语法
|
|
选项
|
|
参数
进程名称:指定要查找的进程名称,同时也支持类似grep指令中的匹配模式。
实例
|
|
- 原文作者:lex
- 原文链接:https://blog.mineor.xyz/posts/linux%E5%91%BD%E4%BB%A4/pgrep/
- 版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。