OS/Linux

[Linux] PID로 현재 쓰고있는 프로세스 위치찾는법.

모클 2023. 4. 27. 16:13

프로세스가 현재 어느 위치에서 돌고있는지 확인하는 방법은 아래와같다.

 

1.Windows: wmic process where processid="<PID>" get executablepath

2.Linux/macOS : lsof -p <PID> | grep cwd

 

감사합니다.