当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
小程序导航及导航传参
flex 的 三个参数:flex-grow、flex-shrink、flex-basis
uni-app自定义导航栏
电子产品结构设计中的电磁兼容性(EMC)设计
推荐几款好用的MySQL开源客户端,建议收藏
【Image Classification】2022-ResMLP
[Red Team] ATT&CK - Self-starting - Self-starting mechanism using LSA authentication package
小程序分包及分包预下载
过水滑环的结构和工作原理
【每日一题】大佬们进来看看吧
Completion of the flag set in 2022
实例048:数字比大小
想要避免After Effects渲染失败的问题,5个小技巧必看
“双枪”木马病毒的进化史
Chip Accelerator
实例046:打破循环
轻流CEO薄智元:从无代码到无边界
Recommend several easy-to-use MySQL open source clients, it is recommended to collect
从8k到13k,我全靠这本《接口自动化测试——从入门到精通》
Mini Program Navigation and Navigation Parameters