Linux pgrep

来源:互联网 发布:php ext 编辑:程序博客网 时间:2024/05/22 14:45

这个命令是ps 和grep的集合体。

-v: 反向匹配。与grep一样。

-u user: 匹配该用户的进程。

-l: 显示PID和process name

-f: match pattern against the whole command name, rather than just the process name.

[oracle@odilab /]$ pgrep -l -u oracle "ora"2689 oracle2691 oracle2695 oracle2697 oracle2699 oracle2701 oracle2703 oracle2705 oracle2707 oracle2709 oracle2711 oracle2713 oracle2715 oracle2717 oracle2719 oracle2721 oracle2723 oracle2749 oracle2751 oracle2753 oracle2755 oracle2772 oracle2774 oracle2776 oracle2790 oracle2900 oracle7557 oracle9097 oracle11580 oracle


0 0
原创粉丝点击