logo

Netstat Cheat Sheet


title: Netstat date: 2021-01-27 11:44:21 background: bg-slate-700 tags: - network - utility - port categories: - Linux Command intro: | This quick reference cheat sheet provides various for using netstat command. plugins: - copyCode

Getting Started

Statistics

All connections on port 80

$ netstat -anp | grep :80

Netstat Help

$ netstat -h

Listening

OptionExample
netstat -ltunpAll Listening ports
netstat -ltnListening TCP ports
netstat -lunListening UDP ports
netstat -lxListening Unix ports

Connections

OptionExample
netstat -aAll connections
netstat -atAll TCP connections
netstat -auAll UDP connections

Statistics

OptionExample
netstat -sDisplay statistics
netstat -stDisplay TCP statistics
netstat -suDisplay UDP statistics

Networks

OptionExample
netstat -iShow network interfaces
netstat -ieShow network interfaces extended info

Routing

OptionExample
netstat -rShow routing table
netstat -rnShow routing table, don't resolve hosts
🐧 Linux 命令

Netstat

Netstat Cheat Sheet - 快速参考指南,收录常用语法、命令与实践。

📂 分类 · Linux 命令🧭 Markdown 速查🏷️ 2 个标签
#netstat#network
向下滚动查看内容
返回全部 Cheat Sheets

Getting Started

Statistics

All connections on port 80

SHELL
滚动查看更多
$ netstat -anp | grep :80

Netstat Help

SHELL
滚动查看更多
$ netstat -h
Listening
OptionExample
netstat -ltunpAll Listening ports
netstat -ltnListening TCP ports
netstat -lunListening UDP ports
netstat -lxListening Unix ports
Connections
OptionExample
netstat -aAll connections
netstat -atAll TCP connections
netstat -auAll UDP connections
Statistics
OptionExample
netstat -sDisplay statistics
netstat -stDisplay TCP statistics
netstat -suDisplay UDP statistics
Networks
OptionExample
netstat -iShow network interfaces
netstat -ieShow network interfaces extended info
Routing
OptionExample
netstat -rShow routing table
netstat -rnShow routing table, don't resolve hosts

相关 Cheat Sheets