ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [Linux] 프로세스 이름으로 pid 추출하기
    Computer Science/리눅스 2021. 3. 10. 10:19

    pgrep : pid만 추출하는 명령어

    -f : 프로세스 이름으로 찾는 옵션

    CURRENT_PID=$(pgrep -f [프로세스 이름])

     

    댓글

Designed by Tistory.