Koji servis drži port X
{Linux},{Windows}

Ubuntu

netstat

  • netstat -anop | grep ":80" | grep -i "listen"
  • tcp6 0 0 :::80 :::* LISTEN 853/apache2 off (0.00/0/0)

ss

  • ss -tulipan | grep ":80"
  • LISTEN 0 511 *:80 *:* users:(("apache2",pid=875,fd=4),("apache2",pid=874,fd=4),("apache2",pid=853,fd=4))

Windows

netstat

  • netstat -abon | find /i ":80" | FIND /I "listening"
  • (uoči zadnji stupac; to je Process ID, PID; npr. 4)
  • tasklist /FI "PID eq 4"


netstat ss xnetstat xss xport xopen xlistening xotvoren xtcp platno bona xplatno xbona

image_pdfimage_print