"BusyBox pgrep"의 두 판 사이의 차이

 
28번째 줄: 28번째 줄:
bash-5.1$ pgrep dumb-init -af
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
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
</syntaxhighlight>
<syntaxhighlight lang='console'>
bash-4.4# pgrep -a 1
1 /usr/lib/jvm/java-1.8-openjdk/jre/bin/java
bash-4.4# pgrep -af 1
1 /usr/lib/jvm/java-1.8-openjdk/jre/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start
</syntaxhighlight>
</syntaxhighlight>



2022년 11월 22일 (화) 15:34 기준 최신판

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
bash-4.4# pgrep -a 1
1 /usr/lib/jvm/java-1.8-openjdk/jre/bin/java
bash-4.4# pgrep -af 1
1 /usr/lib/jvm/java-1.8-openjdk/jre/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start

2 같이 보기[ | ]

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