7803 shaares
6267 liens privés
6267 liens privés
1 résultat
pour %s
netstat -na | grep -w "LISTEN"
netstat -nlp # via https://superuser.com/a/42849
show app and ports that's it
sudo netstat -tunlp | awk '{print $4, $7}' | grep -Eo ':[0-9]+|[0-9]+/[a-zA-Z]+' | sed 'N;s/\n/ /' | awk '{print $1, $2}' | cut -d ':' -f 2 | grep '/' | sed 's;[0-9]*/;;g' | awk '{printf "%-10s\t%s\n", $1, $2}'