每天一个linux命令:netstat  http://www.cnblogs.com/peida/archive/2013/03/08/2949194.html

netstat命令用于显示与IP、TCP、UDP和ICMP协议相关的统计数据,一般用于检验本机各端口的网络连接情况。netstat是在内核中访问网络及相关信息的程序,它能提供TCP连接,TCP和UDP监听,进程内存管理的相关报告。

如果你的计算机有时候接收到的数据报导致出错数据或故障,你不必感到奇怪,TCP/IP可以容许这些类型的错误,并能够自动重发数据报。但如果累计的出错情况数目占到所接收的IP数据报相当大的百分比,或者它的数目正迅速增加,那么你就应该使用netstat查一查为什么会出现这些情况了。

[root@localhost root]# netstat --help
usage: netstat [-veenNcCF] [<Af>] -r         netstat {-V|--version|-h|--help}
       netstat [-vnNcaeol] [<Socket> ...]
       netstat { [-veenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s } [delay]

-r, --route                display routing table
        -I, --interfaces=[<Iface>] display interface table for <Iface>
        -i, --interfaces           display interface table
        -g, --groups               display multicast group memberships
        -s, --statistics           display networking statistics (like SNMP)
        -M, --masquerade           display masqueraded connections

-v, --verbose              be verbose
        -n, --numeric              don't resolve names
        --numeric-hosts            don't resolve host names
        --numeric-ports            don't resolve port names
        --numeric-users            don't resolve user names
        -N, --symbolic             resolve hardware names
        -e, --extend               display other/more information
        -p, --programs             display PID/Program name for sockets
        -c, --continuous           continuous listing

-l, --listening            display listening server sockets
        -a, --all, --listening     display all sockets (default: connected)
        -o, --timers               display timers
        -F, --fib                  display Forwarding Information Base (default)
        -C, --cache                display routing cache instead of FIB
        -T, --notrim               stop trimming long addresses
        -Z, --context              display SELinux security context for sockets

<Iface>: Name of interface to monitor/list.
  <Socket>={-t|--tcp} {-u|--udp} {-S|--sctp} {-w|--raw} {-x|--unix} --ax25 --ipx --netrom
  <AF>=Use '-A <af>' or '--<af>'; default: inet
  List of possible address families (which support routing):
    inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
    netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
    x25 (CCITT X.25)

最新文章

  1. [LeetCode] Edit Distance 编辑距离
  2. 使用Github进行合作开发
  3. c中使用gets() 提示warning: this program uses gets(), which is unsafe.
  4. 重制AdvanceWars第一步 -- 搞定地图
  5. wkhtmltopdf 中文参数详解
  6. iOS 警告窗口
  7. Fix VNC Desktop Sharing on Ubuntu Desktop 14.04
  8. VS2010使用TeeChart5的ColorGrid绘制一维距离像
  9. 在mac中用终端来运行.c文件
  10. ajax的分页查询(不刷新页面)
  11. 五年.net程序员转型Java之路
  12. ratelimit.go
  13. Java容器-个人整理1
  14. 【webserver】使用python实现webserver,支持上传下载文件
  15. 《python源代码剖析》笔记 python环境初始化
  16. laravel中redis队列的使用
  17. 二维码PDF417简介及其解码实现(zxing-cpp)
  18. java 盒子模型
  19. linux提权辅助工具(三):privchecker.py
  20. HTTP认证机制

热门文章

  1. PHP上传图片
  2. Zepto Api参考
  3. 让.net程序自动运行在管理员权限下
  4. WPF:在XmlDataProvider上使用主-从绑定(Master-Detail Binding)
  5. BF、KMP、BM、Sunday算法讲解
  6. oracle dataguard 角色切换
  7. nhibernate 更新 SqlDateTime 溢出问题
  8. Android 支付宝钱包手势password裂纹战斗
  9. Foundation NSMutableArray遍历,选取出符合条件的所有对象
  10. c#的Marshal