开发者社区> 问答> 正文

pgrep 是通过程序的名字来查询进程的工具,它所指的"程序的名字"到底是什么

如题:linux命令pgrep中百度百科中说pgrep 是通过程序的名字来查询进程的工具,它所指的"程序的名字"到底是什么
我用ps -ef比如得到的一条信息是:
root 1768 1 0 21:47 ? 00:00:00 python Store_ma.py
这条信息中的Store_ma.py是不是就是pgrep中的"程序的名字"

展开
收起
杨冬芳 2016-07-11 11:19:34 2500 0
2 条回答
写回答
取消 提交回答
  • pgrep 是通过/proc/pid/stat来查找进程名字的 The process name used for matching is limited to the 15 characters present in the output of /proc/pid/stat

    2023-01-12 16:18:46
    赞同 展开评论 打赏
  • IT从业

    是python才是pgrep的进程名。pgrep xxx
    列出进程名包含xxx的程序

    2019-07-17 19:54:04
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
服务上云加速大家居产业C2M进程 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关实验场景

更多