首页 > 代码库 > linux 常用命令小结【持续跟进】
linux 常用命令小结【持续跟进】
将man命令中的部分复制如下:
特殊符号‘#’后为个人看法,不对的地方,请大家指正。万分感谢!@@
1、 netstat
netstat - Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
#masquerade connections 指的是将linux作为网关时启用了nat功能后,建立的连接。
Useage:
netstat -a display all sockets (default: connected)
netstat -tulp
#t 为tcp、u为udp、l为listen、p为pid/program,即列出当前tcp、udp连接,且在此连接中linux作为server端,监听的端口,信息最后附加上监听端口的pid和program。
netstat -r display routing table
# same as route -n
netstat -i display interface table
linux 常用命令小结【持续跟进】
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。