BusyBox pgrep

Jmnote (토론 | 기여)님의 2022년 8월 1일 (월) 14:18 판 (→‎개요)

1 개요

BusyBox pgrep, Alpine pgrep
비지박스 pgrep, 알파인 pgrep
bash-5.1$ pgrep
BusyBox v1.32.1 () multi-call binary.

Usage: pgrep [-flanovx] [-s SID|-P PPID|PATTERN]

Display process(es) selected by regex PATTERN

        -l      Show command name too
        -a      Show command line too
        -f      Match against entire command line
        -n      Show the newest process only
        -o      Show the oldest process only
        -v      Negate the match
        -x      Match whole name (not substring)
        -s      Match session ID (0 for current)
        -P      Match parent process ID
bash-5.1$ pgrep dumb-init
1
bash-5.1$ pgrep dumb-init -a
1 /usr/bin/dumb-init
bash-5.1$ pgrep dumb-init -af
1 /usr/bin/dumb-init -- /nginx-ingress-controller --ingress-class=proxy-private --configmap=ingress-nginx/nginx-configuration --publish-service=ingress-nginx/ingress-nginx --annotations-prefix=nginx.ingress.kubernetes.io --tcp-services-configmap=ingress-nginx/tcp-services

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}