pgrep命令

-d, --delimiter <string> specify output delimiter 指定输出分隔符

-l, --list-name list PID and process name 列出PID和进程名称

-a, --list-full list PID and full command line 列出PID和完整的命令行

-v, --inverse negates the matching 反向匹配

-w, --lightweight list all TID 列出所有的TID

-c, --count count of matching processes 统计匹配到的进程数

-f, --full use full process name to match 使用全限定名进行匹配

-g, --pgroup <PGID,...> match listed process group IDs 匹配列出的进程组ID

-G, --group <GID,...> match real group IDs 匹配实际进程组ID

-n, --newest select most recently started 选择最近启动的

-o, --oldest select least recently started 选择最近最少启动的

-P, --parent <PPID,...> match only child processes of the given parent 匹配给定父进程的子进程

-s, --session <SID,...> match session IDs 匹配会话ID

-t, --terminal <tty,...> match by controlling terminal 按控制终端匹配

-u, --euid <ID,...> match by effective IDs 按有效的ID进行匹配

-U, --uid <ID,...> match by real IDs 按实际的ID进行匹配

-x, --exact match exactly with the command name 按精确的命令名称匹配

-F, --pidfile <file> read PIDs from file 从文件读取PID

-L, --logpidfile fail if PID file is not locked PID文件未锁定失败

--ns <PID> match the processes that belong to the same

namespace as <pid> 按PID匹配相同命名空间的进程

--nslist <ns,...> list which namespaces will be considered for

the --ns option. 列出将为--ns选项考虑的名称空间。

Available namespaces: ipc, mnt, net, pid, user, uts

 

-h, --help display this help and exit

-V, --version output version information and exit

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值