• pgrep cron


    # pgrep cron
    947
    [root@localhost cron]# pgrep --help

    Usage:
    pgrep [options] <pattern>

    Options:
    -d, --delimiter <string> specify output delimiter
    -l, --list-name list PID and process name
    -a, --list-full list PID and full command line
    -v, --inverse negates the matching
    -w, --lightweight list all TID
    -c, --count count of matching processes
    -f, --full use full process name to match
    -g, --pgroup <PGID,...> match listed process group IDs
    -G, --group <GID,...> match real group IDs
    -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
    -t, --terminal <tty,...> match by controlling terminal
    -u, --euid <ID,...> match by effective IDs
    -U, --uid <ID,...> match by real IDs
    -x, --exact match exactly with the command name
    -F, --pidfile <file> read PIDs from file
    -L, --logpidfile fail if PID file is not locked
    --ns <PID> match the processes that belong to the same
    namespace as <pid>
    --nslist <ns,...> list which namespaces will be considered for
    the --ns option.
    Available namespaces: ipc, mnt, net, pid, user, uts

    -h, --help display this help and exit
    -V, --version output version information and exit

    For more details see pgrep(1).
    [root@localhost cron]# pgrep -a cron
    947 /usr/sbin/crond -n

  • 相关阅读:
    java链接linux服务器,命令操作
    linux中php项目无法发送邮件:PEAR mail package is not installed
    linux下部署php项目-Apache、php、mysql关联
    MyEclipse黑色主题
    MyEclipse优化-六步攻略
    致产品
    万物归宗
    【产品渗透:移动端平台与纯应用APP产品的相互嵌入】
    【异类--一万小时定律】
    【活法】
  • 原文地址:https://www.cnblogs.com/xuanbjut/p/12058368.html
Copyright © 2020-2023  润新知