linux 网络命令
查看本地ip信息
ipconfig
查看开放端口
lsof
list open files
检测对方主机
ping
查看网络连接情况
netstat
| field | content | describe |
|---|---|---|
| proto | The protocol (tcp, udp, udpl, raw) used by the socket | |
| Recv-Q | The count of bytes not copied by the user program connected to this socket | |
| Send-Q | The count of bytes not acknowledged by the remote host | |
| Local Address | Address and port number of the local end of the socket | |
| Foreign Address | Address and port number of the remote end of the socket | |
| State | ESTABLISHED SYN_SENT | The socket has an established connection |
| State | SYN_SENT | The socket is actively attempting to establish a connection |
| State | SYN_RECV | A connection request has been received from the network |
| State | FIN_WAIT1 | The socket is closed, and the connection is shutting down |
| State | FIN_WAIT2 | Connection is closed, and the socket is waiting for a shutdown from the remote end |
| State | TIME_WAIT | The socket is waiting after close to handle packets still in the network |
| State | CLOSE | The socket is not being used |
| State | CLOSE_WAIT | The remote end has shut down, waiting for the socket to close |
| State | LAST_ACK | The remote end has shut down, and the socket is closed. Waiting for acknowledgement |
| State | LISTEN | The socket is listening for incoming connections. |
| State | CLOSING | Both sockets are shut down but we still don’t have all our data sent |
| State | UNKNOWN | The state of the socket is unknown |
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
