본문 바로가기
개발/정리

[Linux] 우분투에서 사용중인 포트 확인

by parkkingcar 2023. 4. 12.

 

 

우분투에서 사용하고 있는 포트를 확인합니다.

 

 

아래 명령을 통해 현재 사용하고 있는 포트를 확인할 수 있습니다.

 

$ netstat -tnlp | grep "LISTEN"

netstat -tnlp | grep "LISTEN"

 

 

 

 

하지만 netstat 명령이 설치되지 않은 경우 아래 에러가 발생합니다.

 

Command 'netstat' not found, but can be installed with: sudo apt install net-tools

 

 

 

아래 명령을 통해 설치합니다.


$ sudo apt-get install net-tools

 

 

 

 

 

댓글