Created
May 13, 2023 16:36
-
-
Save wipermail/7ffea52faf9011816ee77ea0b472a26c to your computer and use it in GitHub Desktop.
Who is listening on a port in Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo lsof -i :номер_порта | |
sudo netstat -lntup | |
Опишем все ключи, которые используются в команде | |
-l показать только прослушиваемые "LISTEN" порты. | |
-n показывать адреса как ip, а не пытаться определять домены. | |
-t показывать TCP порты. | |
-u показывать UDP порты. | |
-p показать название программы, которая слушает порт. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment