====== lsof ====== * 일반적으로 시스템에서 동작하고 있는 모든 프로세스에 의해서 열리어진 파일들에 관한 정보를 보여주는 시스템 관리 명령어 * [[http://roughexistence.tistory.com/33|Rough Existence :: lsof 명령어 활용법]] ===== 특정 port 를 listening하고 있는 PID 찾기 ===== * [[http://javarevisited.blogspot.kr/2015/11/how-to-find-pid-of-process-listening-on-a-port-unix-netstat-lsof-command-examples.html|How to find PID of process listening on a port in Linux? netstat and lsof command examples]] netstat -nap | grep 8080 lsof -i :8080 ===== 기타 옵션 ===== * ''lsof -c httpd'' : ''httpd'' 프로세스가 사용중인 포트 * ''-t'' : ''PID''만 출력 * ''-u'' : 특정 사용자가 사용중인 포트 ===== 참조 ===== * [[https://jojoldu.tistory.com/563|특정 포트 Process 종료하기]]