[shell] Linux lsof 사용법


특정 파일을 엑세스하고 있는 프로세스 확인
> lsof filename
Socket 확인
> lsof -i [protocol][@hostname|hostaddr][:service|port]
예) lsof -i@192.168.0.1
lsof -i@192.168.0.1:80
lsof -i:80
특정 사용자 프로세스 확인하기
> lsof -u UID
특정 Process가 사용하는 파일 확인
> lsof -p PID

"프로그래밍 / Linux & Shell Script" 분류의 다른 글

[shell script] bash read command (0)2014/02/11
[linux] shell command 로그 남기기 (0)2014/01/27
[linux] Linux Console에서 BEEP 사운드 끄기 (0)2014/01/27
[shell] netstat (0)2014/01/22
[shell script] 배열(Array) 사용하기 (0)2014/01/10
[shell script] 함수(Function) 사용하기 (0)2014/01/09
[linux] 메모리 (0)2013/12/17
[shell script] Here Documents (0)2013/11/26
[shell script] directory exists check (0)2013/11/20
[shell script] 실행 경로 구하기 (0)2013/10/24


Powered by Textcube