Operation System/Unix & Linux
lsof: command not found
junsuyoun
2022. 9. 25. 02:28
728x90
반응형
lsof 유틸리티 설치
lsof
CentOS
[root@d86a1cc708f1 ~]# yum install -y lsof
[root@d86a1cc708f1 ~]# lsof
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bash 1 root cwd DIR 0,138 4096 50464903 /
bash 1 root rtd DIR 0,138 4096 50464903 /
bash 1 root txt REG 0,138 964536 42467720 /usr/bin/bash
bash 1 root mem REG 0,138 61560 42469498 /usr/lib64/libnss_files-2.17.so
bash 1 root mem REG 0,138 2156272 42469355 /usr/lib64/libc-2.17.so
bash 1 root mem REG 0,138 19248 42469384 /usr/lib64/libdl-2.17.so
bash 1 root mem REG 0,138 174576 42469605 /usr/lib64/libtinfo.so.5.9
bash 1 root mem REG 0,138 163312 42469331 /usr/lib64/ld-2.17.so
... 생략 ...
Ubuntu
root@2e7d55ea6f88:~# apt-get install -y lsof
root@2e7d55ea6f88:~# lsof
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bash 1 root cwd DIR 0,125 4096 50464878 /
bash 1 root rtd DIR 0,125 4096 50464878 /
bash 1 root txt REG 0,125 1183448 15073968 /usr/bin/bash
bash 1 root mem REG 0,125 51832 15074750 /usr/lib/x86_64-linux-gnu/libnss_files-2.31.so
bash 1 root mem REG 0,125 2029560 15074685 /usr/lib/x86_64-linux-gnu/libc-2.31.so
bash 1 root mem REG 0,125 18816 15074696 /usr/lib/x86_64-linux-gnu/libdl-2.31.so
bash 1 root mem REG 0,125 192032 15074805 /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2
bash 1 root mem REG 0,125 191472 15074663 /usr/lib/x86_64-linux-gnu/ld-2.31.so
... 생략 ...
- 패키지 매니저로 설치가 불가능한 경우 아래 링크를 통해 직접 파일로 다운 받아 설치를 합니다.
Linux libarary 파일 다운로드
리눅스 환경에서 yum 또는 apt-get과 같은 패키지 관리자로 패키지를 다운 받지 못할 때 파일로 준비해야 합니다. Repository CentOS Index of /centos mirror.navercorp.com CentOS 버전에 맞게 탐색을 합니다. I..
junsuyoun.tistory.com
728x90
반응형