른록노트

[CentOS7] netstat 옵션 본문

Server,OS/[Linux]

[CentOS7] netstat 옵션

른록 2018. 7. 27. 18:10

@ 옵션


-r, --route                     라우팅테이블을 보여준다           

-I, --interfaces=<Iface>    인터페이스 테이블을 보여준다 (Ubuntu에서는 interface를 Iface로 사용)

-i, --interfaces                인터페이스 테이블을 보여준다

-g, --groups                   멀티캐스트 그룹원을 보여준다

-s, --statistics                  네트워크 상태를 보여준다 (like snmp)

-M, --masquerade           가장한 연결을 보여준다


-v, --verbose                천천히 계속해서 보여준다

-W, --wide                    ip주소를 자르지 않는다.

-n, --numeric                이름을 풀지 않는다, 호스트명으로 바꿔서 나타내지않고 바로 ip로 나타냄

--numeric-hosts             호스트이름을 풀지 않는다

--numeric-ports              포트 네임을 풀지 않는다

--numeric-users               사용자 이름을 풀지 않는다

-N, --symbolic                하드웨어 이름을 풀어 알려준다

-e, --extand                    더 많은 정보를 보여준다

-p, --programs                소켓이 사용하는 프로그램명을 알려준다

-o, --timers                    타이머를 보여준다

-c, --continuous            계속해서 리스트로 보여준다


-l, --listening                상태가 LISTEN인 소켓을 보여준다

-a, --all                        모든 소켓을 보여준다 (default:connected)

-F, --fib                        포워딩 정보 베이스를 보여준다

-C, --cahe                     포워딩 정보 베이스 대신에 라우팅 케시를 보여준다

-Z, --context                   SELinux 보안 컨텍스트 소켓을 보여준다


-t, --tcp

-u, --udp

-U, --udplite

-S, --sctp

-w, --raw

-x, --unix




@ netstat -h


usage: netstat [-vWeenNcCF] [<Af>] -r         netstat {-V|--version|-h|--help}

       netstat [-vWnNcaeol] [<Socket> ...]

       netstat { [-vWeenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s [-6tuw] } [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

        -W, --wide               don't truncate IP addresses

        -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

        -o, --timers             display timers

        -c, --continuous         continuous listing


        -l, --listening          display listening server sockets

        -a, --all                display all sockets (default: connected)

        -F, --fib                display Forwarding Information Base (default)

        -C, --cache              display routing cache instead of FIB

        -Z, --context            display SELinux security context for sockets


  <Socket>={-t|--tcp} {-u|--udp} {-U|--udplite} {-S|--sctp} {-w|--raw}

           {-x|--unix} --ax25 --ipx --netrom

  <AF>=Use '-6|-4' or '-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) 



반응형
Comments