首页 > 代码库 > 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 常用命令小结【持续跟进】