linux 网络命令

查看本地ip信息

ipconfig

查看开放端口

lsof

list open files

检测对方主机

ping

查看网络连接情况

netstat

fieldcontentdescribe
protoThe protocol (tcp, udp, udpl, raw) used by the socket
Recv-QThe count of bytes not copied by the user program connected to this socket
Send-QThe count of bytes not acknowledged by the remote host
Local AddressAddress and port number of the local end of the socket
Foreign AddressAddress and port number of the remote end of the socket
StateESTABLISHED SYN_SENTThe socket has an established connection
StateSYN_SENTThe socket is actively attempting to establish a connection
StateSYN_RECVA connection request has been received from the network
StateFIN_WAIT1The socket is closed, and the connection is shutting down
StateFIN_WAIT2Connection is closed, and the socket is waiting for a shutdown from the remote end
StateTIME_WAITThe socket is waiting after close to handle packets still in the network
StateCLOSEThe socket is not being used
StateCLOSE_WAITThe remote end has shut down, waiting for the socket to close
StateLAST_ACKThe remote end has shut down, and the socket is closed. Waiting for acknowledgement
StateLISTENThe socket is listening for incoming connections.
StateCLOSINGBoth sockets are shut down but we still don’t have all our data sent
StateUNKNOWNThe state of the socket is unknown


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部