# netstat -unlt

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address             State

tcp        0      0 0.0.0.0:6817                0.0.0.0:*                   LISTEN

tcp        0      0 0.0.0.0:6701                0.0.0.0:*                   LISTEN

tcp        0      0 0.0.0.0:973                 0.0.0.0:*                   LISTEN

tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN

tcp        0      0 0.0.0.0:8400                0.0.0.0:*                   LISTEN

tcp        0      0 0.0.0.0:8402                0.0.0.0:*                   LISTEN

tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN

tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN

tcp        0      0 0.0.0.0:31196               0.0.0.0:*                   LISTEN

tcp        0      0 127.0.0.1:54909             0.0.0.0:*                   LISTEN

tcp        0      0 :::22                       :::*                        LISTEN

udp        0      0 0.0.0.0:1024                0.0.0.0:*

udp        0      0 0.0.0.0:967                 0.0.0.0:*

udp        0      0 0.0.0.0:970                 0.0.0.0:*

udp        0      0 0.0.0.0:5353                0.0.0.0:*

udp        0      0 0.0.0.0:111                 0.0.0.0:*

udp        0      0 0.0.0.0:631                 0.0.0.0:*

udp        0      0 :::1025                     :::*

udp        0      0 ::1:1045                    :::*

udp        0      0 ::1:1046                    :::*

udp        0      0 ::1:1047                    :::*

udp        0      0 ::1:1176                    :::*

udp        0      0 ::1:1178                    :::*

udp        0      0 :::5353                     :::*

# netstat -ano |grep -v unix

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       Timer

tcp        0      0 0.0.0.0:6817                0.0.0.0:*                   LISTEN      off (0.00/0/0)

tcp        0      0 0.0.0.0:6701                0.0.0.0:*                   LISTEN      off (0.00/0/0)

tcp        0      0 0.0.0.0:973                 0.0.0.0:*                   LISTEN      off (0.00/0/0)

tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      off (0.00/0/0)

tcp        0      0 0.0.0.0:8400                0.0.0.0:*                   LISTEN      off (0.00/0/0)

tcp        0      0 0.0.0.0:8402                0.0.0.0:*                   LISTEN      off (0.00/0/0)

tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      off (0.00/0/0)

tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      off (0.00/0/0)

tcp        0      0 0.0.0.0:31196               0.0.0.0:*                   LISTEN      off (0.00/0/0)

tcp        0      0 127.0.0.1:54909             0.0.0.0:*                   LISTEN      off (0.00/0/0)

tcp        0      0 127.0.0.1:17298             127.0.0.1:61255             ESTABLISHED off (0.00/0/0)

tcp        0      0 127.0.0.1:8402              127.0.0.1:26168             ESTABLISHED off (0.00/0/0)

tcp        0      0 127.0.0.1:43189             127.0.0.1:32463             ESTABLISHED off (0.00/0/0)

tcp        0      0 127.0.0.1:61255             127.0.0.1:17298             ESTABLISHED off (0.00/0/0)

tcp        0      0 127.0.0.1:26168             127.0.0.1:8402              ESTABLISHED off (0.00/0/0)

tcp        0      0 127.0.0.1:32463             127.0.0.1:43189             ESTABLISHED off (0.00/0/0)

tcp        0      0 :::22                       :::*                        LISTEN      off (0.00/0/0)

tcp        0      0 ::ffff:172.16.102.179:22    ::ffff:172.16.105.20:64411  ESTABLISHED keepalive (5285.31/0/0)

tcp        0     52 ::ffff:172.16.102.179:22    ::ffff:172.16.105.20:64514  ESTABLISHED on (0.23/0/0)

udp        0      0 0.0.0.0:1024                0.0.0.0:*                               off (0.00/0/0)

udp        0      0 0.0.0.0:967                 0.0.0.0:*                               off (0.00/0/0)

udp        0      0 0.0.0.0:970                 0.0.0.0:*                               off (0.00/0/0)

udp        0      0 0.0.0.0:5353                0.0.0.0:*                               off (0.00/0/0)

udp        0      0 0.0.0.0:111                 0.0.0.0:*                               off (0.00/0/0)

udp        0      0 0.0.0.0:631                 0.0.0.0:*                               off (0.00/0/0)

udp        0      0 :::1025                     :::*                                    off (0.00/0/0)

udp        0      0 ::1:1045                    :::*                                    off (0.00/0/0)

udp        0      0 ::1:1046                    :::*                                    off (0.00/0/0)

udp        0      0 ::1:1047                    :::*                                    off (0.00/0/0)

udp        0      0 ::1:1176                    :::*                                    off (0.00/0/0)

udp        0      0 ::1:1178                    :::*                                    off (0.00/0/0)

udp        0      0 :::5353                     :::*                                    off (0.00/0/0)

# netstat -nlp |grep -v unix

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name

tcp        0      0 0.0.0.0:6817                0.0.0.0:*                   LISTEN      8150/EvMgrC

tcp        0      0 0.0.0.0:6701                0.0.0.0:*                   LISTEN      5272/ora_d000_orcl

tcp        0      0 0.0.0.0:973                 0.0.0.0:*                   LISTEN      2487/rpc.statd

tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      2448/portmap

tcp        0      0 0.0.0.0:8400                0.0.0.0:*                   LISTEN      8149/cvd

tcp        0      0 0.0.0.0:8402                0.0.0.0:*                   LISTEN      8150/EvMgrC

tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      2775/vsftpd

tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      2738/cupsd

tcp        0      0 0.0.0.0:31196               0.0.0.0:*                   LISTEN      8149/cvd

tcp        0      0 127.0.0.1:54909             0.0.0.0:*                   LISTEN      8149/cvd

tcp        0      0 :::22                       :::*                        LISTEN      2757/sshd

udp        0      0 0.0.0.0:1024                0.0.0.0:*                               2912/avahi-daemon:

udp        0      0 0.0.0.0:967                 0.0.0.0:*                               2487/rpc.statd

udp        0      0 0.0.0.0:970                 0.0.0.0:*                               2487/rpc.statd

udp        0      0 0.0.0.0:5353                0.0.0.0:*                               2912/avahi-daemon:

udp        0      0 0.0.0.0:111                 0.0.0.0:*                               2448/portmap

udp        0      0 0.0.0.0:631                 0.0.0.0:*                               2738/cupsd

udp        0      0 :::1025                     :::*                                    2912/avahi-daemon:

udp        0      0 ::1:1045                    :::*                                    5240/ora_pmon_orcl

udp        0      0 ::1:1046                    :::*                                    5272/ora_d000_orcl

udp        0      0 ::1:1047                    :::*                                    5274/ora_s000_orcl

udp        0      0 ::1:1176                    :::*                                    8691/rman

udp        0      0 ::1:1178                    :::*                                    8691/rman

udp        0      0 :::5353                     :::*                                    2912/avahi-daemon:

Active UNIX domain sockets (only servers)

Proto RefCnt Flags       Type       State         I-Node PID/Program name    Path

# netstat -rn

Kernel IP routing table

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface

172.16.102.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0

169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0

0.0.0.0         172.16.102.1    0.0.0.0         UG        0 0          0 eth0

netstat in Linux的更多相关文章

  1. Prometheus Node_exporter 之 Network Netstat TCP Linux MIPs

    Network Netstat TCP Linux MIPs1. TCP Aborts / Tiemouts type: GraphUnit: shortLabel: ConnectionsTCPAb ...

  2. Mac 下netstat和linux下不一样

    Linux's netstat command options and OS X(/BSD)'s have almost nothing to do with each other. Of the o ...

  3. linux 命令之netstat

    转自:http://www.maomao365.com/?p=699 linux 命令之netstat 在linux中netstat命令的作用是查看TCP/IP网络当前所开放端口,所对应的本地和外地端 ...

  4. netstat 在windows下和Linux下查看网络连接和端口占用

    假设忽然起个服务,告诉我8080端口被占用了,OK,我要去看一下是什么服务正在占用着,能不能杀 先假设我是在Windows下: 第一列: Proto 协议 第二列: 本地地址[ip+端口] 第三列:远 ...

  5. Linux:常用命令

    文件压缩.解压 网络.进程 磁盘.文件使用情况 内存使用 1.文件压缩.解压 1)tar.gz文件解压: .bin.tar.gz 解压到指定目录: (指定的目录是存在的) .bin. 2)zip 文件 ...

  6. php面试题之四——Linux部分(高级部分)

    四.Linux部分 1.请解释下列10个shell命令的用途(新浪网技术部) top.ps.mv.find.df.cat.chmod.chgrp.grep.wc top:该命令提供了实时对系统处理器状 ...

  7. linux全部命令

    linux全部命令 一.安装和登陆命令1.进入图形界面startx 2.进入图形界面init 5 3.进入字符界面init 3 4.登陆login 5.关机poweroff-p 关闭机器的时候关闭电源 ...

  8. Linux查看端口使用状态及启动

    LINUX网络性能之管理工具三剑客 本文是介绍管理Linux查看端口这些输出信息,该命令将显示从每个数据包传出的头和来自主机hostname对端口80的编址.Netstat -tln 命令是Linux ...

  9. linux 操作

    正在运行的内核和系统信息 # uname -a # 获取内核版本(和BSD版本) # lsb_release -a # 显示任何 LSB 发行版版本信息 # cat /etc/SuSE-release ...

随机推荐

  1. 【LeetCode】17. Letter Combinations of a Phone Number 电话号码的字母组合

    作者: 负雪明烛 id: fuxuemingzhu 个人博客:http://fuxuemingzhu.cn/ 个人公众号:负雪明烛 本文关键词:电话号码, 字母组合,回溯法,题解,leetcode, ...

  2. 【LeetCode】424. 替换后的最长重复字符 Longest Repeating Character Replacement(Python)

    作者: 负雪明烛 id: fuxuemingzhu 公众号:每日算法题 本文关键词:LeetCode,力扣,算法,算法题,字符串,双指针,刷题群 目录 题目描述 题目大意 解题方法 双指针 代码 欢迎 ...

  3. 【LeetCode】60. Permutation Sequence 解题报告(Python & C++)

    作者: 负雪明烛 id: fuxuemingzhu 个人博客: http://fuxuemingzhu.cn/ 目录 题目描述 题目大意 解题方法 日期 题目地址:https://leetcode.c ...

  4. PAT甲组 1010 Radix (二分)

    1010 Radix (25分) Given a pair of positive integers, for example, \(6\) and \(110\), can this equatio ...

  5. 分布式(CAP)

    1. Consistency  ------->C---------->一致性[写操作之后的读操作,必须返回该值] 2. Availability-------->A-------- ...

  6. Java语言程序设计复习提纲

     这是我在准备Java考试时整理的提纲,如果是通过搜索引擎搜索到这篇博客的师弟师妹,建议还是先参照PPT和课本,这个大纲也不是很准确,自己总结会更有收获,多去理解含义,不要死记硬背,否则遇到概念辨析题 ...

  7. CAS学习笔记二:CAS单点登录流程

    背景 由于公司项目甲方众多,各甲方为了统一登录用户体系实现单点登录(SSO)开始要求各乙方项目对接其搭建的CAS单点登录服务,有段时间对CAS的流程很迷,各厂商还有基于CAS进行二次开发的情况,所以对 ...

  8. Api接口测试总是似懂非懂,只因这个原理没搞清楚

    ​ 前言 掌握了http协议,就掌握了接口测试 笔者在网络上看过不少接口测试教程,一上来就开始讲怎么操作工具,而不告诉读者为什么要这么操作.读者可能照猫画虎成功了,也可能操作失败了但不知为何出错. 因 ...

  9. Net 实现自定义Aop

    引言 何为AOP,在软件开发中,总是听到这个AOP这个词语,但是何为AOP呢,AOP全称是Aspect Oriented Programming,中文译为面向切面编程,什么意思呢,即我们的应用程序在运 ...

  10. python 使用@property 操作属性时,报“RecursionError:maximun recursion depth exceeded”

    使用@property获取和修改属性,出现报错"RecursionError:maximun recursion depth exceeded",超过了最大的递归深度 原因: 方法 ...