当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Day16 charles的基本使用
关于redis在业务中的应用问题,如何解决?
Example 043: Scope, class methods and variables
实例048:数字比大小
单体架构应用和分布式架构应用的区别
【语义分割】2022-HRViT CVPR
获取属性特性几种方法
树的介绍、树的定义和基本术语、二叉树的定义和性质、二叉树的顺序表示与实现和链式表示与实现以及树的遍历方法以及两种创建方式
想要避免After Effects渲染失败的问题,5个小技巧必看
带你深入理解3.4.2的版本更新,对用户带来了什么?
网路编程_调试accept
Software life cycle (the work of each phase of software engineering)
PostgreSQL相关语法及指令示例
如何使用腾讯字体,已经在什么场合下可以使用该字体?TTTGB-Medium
国能准能集团研发矿山数字孪生系统 填补国内采矿行业空白
小程序wxs
Excel Advanced Drawing Skills 100 Lectures (23) - Countdown Counting in Excel
如何快速成为一名软件测试工程师?测试员月薪15k需要什么技术?
同样是初级测试,凭什么他比我薪资高 5000 块?
基于误差状态的卡尔曼滤波ESKF