当前位置:网站首页>Difference between netstat and ss command
Difference between netstat and ss command
2022-08-10 04:00:00 【Au Yang】
netstat command parameters and usage
Common parameters-anplt
-a Display all active connections and the TCP and UDP ports listened by the machine
-l Display the listening server port
-n Use the IP address directly, not through the domain nameServer
-p Program PID and program name using Socket
-r Display routing table
-t Display connection status of TCP transport protocol
-u Display connection status of UDP transport protocol
-w Display the connection status of the RAW transmission protocol
netstat -anutlp | grep 80tcp6 0 0:::80:::* LISTEN 8218/httpd ss (socket statistics) parameters and usage
Common parameters are similar to netstat, such as -anp
-a show all sockets
-l show listening
-n show numeric IP and port, not through domain name server
-pShow corresponding programs that use sockets
-t only show TCP sockets
-u only show UDP sockets
-4 -6 only show v4 or v6V sockets
-s print out statistics.This option does not resolve sockets obtained from various sources.Useful for parsing large sockets counts in /proc/net/top
-0 show PACKET sockets
-w show only RAW sockets
-x show only UNIX domain sockets
-r try domain nameresolve, address/port
ss -anutlp | grep 80tcp LISTEN 0 128 :::80 :::* users:(("httpd",pid=8223,fd=4),("httpd",pid=8222,fd=4),("httpd",pid=8221,fd=4),("httpd",pid=8220,fd=4),("httpd",pid=8219,fd=4),("httpd",pid=8218,fd=4))statistics (ss -s)ss -sTotal: 599 (kernel 1020)TCP: 9 (estab 1, closed 1, orphaned 0, synrecv 0, timewait 0/0), ports 0Transport Total IP IPv6* 1020 - - - -RAW 1 1 0 0 1 1UDP 6 6 3 3 3 3TCP 8 8 4 4 4 4INET 15 7 8 8FRAG 0 0 0 0 0 0 
边栏推荐
猜你喜欢
随机推荐
HRnet
实测办公场景下,国产远程控制软件的表现力如何?(技术解析)
MySQL: What MySQL optimizations have you done?
实例042:变量作用域
金融口译,口译中金融高频词有哪些
湖仓一体电商项目(四):项目数据种类与采集
MySQL: Introduction to Logging System | Error Log | Query Log | Binary Log: Bin-log Data Recovery Practice | Slow Log Query
维度表设计
Mini Program Navigation and Navigation Parameters
cuda——nms
Chip Accelerator
实例045:求和
2022/08/09 学习笔记 (day26) IO流
nodejs 时钟案例(fs模块),重复使用fs.writeFile方法,旧内容会被覆盖
The Evolutionary History of the "Double Gun" Trojan Horse Virus
liunx PS1 settings
程序国际化
Little rookie Hebei Unicom induction training essay
实例043:作用域、类的方法与变量
实例048:数字比大小









