码迷,mamicode.com
首页 > 系统相关 > 详细

linux 常用命令小结【持续跟进】

时间:2014-12-21 19:23:23      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

 

将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 常用命令小结【持续跟进】

标签:

原文地址:http://www.cnblogs.com/ayy2014/p/4176880.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!