운영체제/리눅스 linux
[Linux_Ubuntu] Command 'netstat' not found, but can be installed with: sudo apt install net-tools
박경태
2022. 4. 1. 21:09
우분투를 사용하는데,
현재 내 우분투가 사용하는 포트가 궁금해서 명령어를 입력했더니
다음과 같은 에러가 발생했다.
netstat -tnlp | grep "LISTEN"
Command 'netstat' not found, but can be installed with: sudo apt install net-tools
이건 netstat라는 명령어가 설치 안됐다는 이야기인데,
설치해보자.
sudo apt-get install net-tools
다시 명령어를 입력해보자
netstat -tnlp | grep "LISTEN"
잘 확인된다.