1 개요[ | ]
- BusyBox pgrep, Alpine pgrep
- 비지박스 pgrep, 알파인 pgrep
Console
Copy
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
Console
Copy
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
Console
Copy
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 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.