![]() ![]() -p : List process name that opened sockets.For example, TCP port 22 is opened by SSHD server. Where, ss command options are as follows: Therefore, you need to use the ss command as follows: The netstat command deprecated for some time on Linux. Run netstat command along with grep command to filter out port in LISTEN state: You can check the listening ports and applications with netstat as follows. 85379 is the process ID of the sshd process.22 is the TCP port that is being used (LISTEN).10.86.128.138 is the IP address to which sshd application bind to (LISTEN).$ doas lsof -i -P -n | grep LISTEN #įig.01: Check the listening ports and applications with lsof commandConsider the last line from above outputs: sshd 85379 root 3u IPv4 0xffff80000039e000 0t0 TCP 10.86.128.138:22 (LISTEN) Let us see commands and its output in details. For the latest version of Linux use the ss command.Sudo lsof -i:22 # see a specific port such as 22 # Run any one of the following command on Linux to see open ports:.To check the listening ports and applications on Linux: Muy ver puertos abiertos por cmd post, estuve intentando eliminar los PID que usaban el puerto a través del CMD eliminada un PID del puerto y otro lo usaba hasta que leí tu blog descargue TCPview aplique eliminar y logre cargar el programa que necesitaba el puerto libre muchas gracias.
0 Comments
Leave a Reply. |