linux 网络命令
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                linux 网络命令
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.                        
                                查看本地ip信息
ipconfig
查看開放端口
lsof
list open files
檢測對方主機
ping
查看網(wǎng)絡(luò)連接情況
netstat
| 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 | 
總結(jié)
以上是生活随笔為你收集整理的linux 网络命令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: linux 命令综述
- 下一篇: leetcode 94
