1) File Descriptor를 확인 할 프로세스의 PID 확인
ps -ef | grep [Process Name] UID PID PPID C STIME TTY TIME CMD root 20298 20297 0 13:37 pts/1 00:00:14 [프로세스명] |
2) /proc를 통한 해당 프로세스 File Descriptor 확인
ls -al /proc/[PID]/fd total 9 dr-x------ 2 root root 0 Jun 17 13:37 ./ dr-xr-xr-x 3 root root 0 Jun 17 13:37 ../ lrwx------ 1 root root 64 Jun 17 13:37 0 -> /dev/fb0 lrwx------ 1 root root 64 Jun 17 13:37 1 -> /dev/fb1 lrwx------ 1 root root 64 Jun 17 13:37 2 -> /dev/pts/1 lrwx------ 1 root root 64 Jun 17 13:37 3 -> socket:[88] lrwx------ 1 root root 64 Jun 17 13:37 4 -> socket:[80] lrwx------ 1 root root 64 Jun 17 13:37 5 -> socket:[8080] lrwx------ 1 root root 64 Jun 17 13:37 6 -> socket:[9988] lrwx------ 1 root root 64 Jun 17 13:37 7 -> socket:[9997] lrwx------ 1 root root 64 Jun 17 13:37 8 -> socket:[9999] |
'Linux > Tip!' 카테고리의 다른 글
dhclient 사용방법 (0) | 2015.11.12 |
---|---|
네트워크 인터페이스 확인 방법 (0) | 2015.10.29 |
gcc : char 기본형 설정 방법(signed/unsigned) (0) | 2015.10.26 |
e2fsck! HDD 복구 방법 (0) | 2014.05.19 |
Subversion(SVN) 백업 및 복구 (0) | 2014.05.13 |