The output can be divided into two parts:
ActiveInternet Connections, called active TCP connections;
The other is Active UNIX domain sockets, called active Unix domain sockets, which can only be used for local communication.
Main parameters
-a,--all,--listening
Show all options, LISTEN
-t
Display only tcp related options
-u
Display only udp related options
-n
Do not display aliases, can be converted to full numbers Convert to Number
-l,--listening
List only the service status in LISTEN
-p
Display the name of the program that establishes the relevant link
-r
Display routing information
-e
Show more information
-s
Display Statistics
-c,--continuous
Keep listing information
-i,--interfaces
Display interface table
-g,--groups
Show multicast group members
-v,--verbose
Show details
-W,-- Wide
Does not compress display IP address
-o,--timers
Display timer
-C,--cache
Display route cache information
Examples
List all ports
netstat -a
List all tcp ports
netstat-at
List all udp ports
netstat-au
List all in Sockets listening to status
netstat -l
Listing all listening UNIX ports only
netstat-lx
Displaying statistics for all ports
netstat -s
Display PID and process name in netstat output
netstat -p
Do not display alias in output
netstat- An
Continuous output information
netstat -c
Display routing information
netstat -r
Display network interface list
netstat -i
in CentOS Introduction to lvs LVS has a similar point to other application-layer or IP-based load b
1 dr mode introduction 1.1 lvs installation 1.2 lvs mode lvs has three modes dr, nat, tun
Two virtual network cards after installing the virtual machine: 1.bridged (bridge mode) <?喎& #
Linux download artifact aMule installation tutorial
Linux study notes - shutdown and restart command
Create a user with a password under Linux
Linux process management related content
Linux learning: find command problem
Kali linux 2.0 installation under virtual machine
[Linux] software source installation - Tarball
Linux command after the run -nohup
Linux network based three-layer switch and NAT address translation notes
Win10 part of the enterprise version does not support Edge will still use IE11
Win7 access to shared files is too slow solution (tested)
Win8 system notification function and setting method skills
Win7 can not start the print spooler service error 1068 how to do?
Driver installation error code 0x800705b4 solution
How to make Windows Vista and Dos dual system
How does the Linux system change face Win8 Linux system Win8 skin
How to set the bottom right corner time of Win7 system
Win7 system command prompt input instruction invalid problem solution