netstat
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
netstat [2025/02/21 21:37] – créée luc | netstat [2025/09/20 18:07] (Version actuelle) – supprimée luc | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== netstat ====== | ||
- | |||
- | [[https:// | ||
- | |||
- | '' | ||
- | |||
- | ===== usage de netstat ===== | ||
- | |||
- | <code bash> | ||
- | netstat -tunlp | ||
- | # -t : Show TCP ports. | ||
- | # -u : Show UDP ports. | ||
- | # -n : Show numerical addresses instead of resolving hosts. | ||
- | # -l : Show only listening ports. | ||
- | # -p : Show the PID and name of the listener’s process. This information is shown only if you run the command as root or sudo user. | ||
- | |||
- | |||
- | # filtrer les résultats sur le port 80 | ||
- | netstat -tnlp | grep :80 | ||
- | |||
- | </ | ||
- | |||
- | |||
- | ===== ss ===== | ||
- | |||
- | '' | ||
- | |||
- | <code bash> | ||
- | ss -tunlp | ||
- | # -t : Show TCP ports. | ||
- | # -u : Show UDP ports. | ||
- | # -n : Show numerical addresses instead of resolving hosts. | ||
- | # -l : Show only listening ports. | ||
- | # -p : Show the PID and name of the listener’s process. This information is shown only if you run the command as root or sudo user. | ||
- | |||
- | |||
- | # filtrer les résultats sur le port 80 | ||
- | ss -tnlp | grep :80 | ||
- | |||
- | </ | ||
netstat.1740173849.txt.gz · Dernière modification : de luc