Linux study notes - network related ping finger nslookup netstat [Repost]

xiaoxiao2021-03-06  54

The function of the NetStat Command NetStat command is to display network connections, routing tables, and network interface information, allowing users to know which network connections are working in operation. The general format of this command is: NetStat [Options] command The meaning of each option is as follows: -a Displays all sockets, including listening. -c is redisplayed every 1 second until the user interrupts it. -i Displays information on all network interfaces, formats with "ifconfig -e". -n replaces the name in the network IP address, showing the network connection situation. -r Displays the core route table, formats with "route -e". -t shows the connection of the TCP protocol. -u Displays the connection of the UDP protocol. -v displays working in progress. [Example] Use the netstat command on the local machine. $ NetstatActive Internet connections (w / o servers) Proto Recv-Q Send-Q Local Address Foreign Address StateActive UNIX domain sockets (w / o servers) Proto RefCnt Flags Type State I-Node Pathunix 1 [] STREAM CONNECTED 270 @ 00000008unix 1 [ ] STREAM CONNECTED 150 @ 00000002unix 1 [] STREAM CONNECTED 104 @ 00000001unix 1 [] STREAM CONNECTED 222 @ 00000004unix 1 [] STREAM CONNECTED 171 @ 00000003unix 1 [] STREAM CONNECTED 271 / dev / logunix 1 [] STREAM CONNECTED 225 / dev / logunix 1 [] stream connection 223 / dev / logunix 1 [] stream connection 203 / dev / logunix 1 [] stream connection 105 / dev / log ... nslookup command nslookup command function is to query the IP address of a machine and its corresponding domain name. It usually requires a domain server to provide domain name services. If the user has already set a domain name server, you can use this command to view the domain name corresponding to the IP address of the different hosts. The general format of this command is: NSLookup [IP Address / Domain Name] [Example] Use the nslookup command on the local machine. $ NSLOOKUPDEFAULT Server: Name.tlc.com.cnaddress: 192.168.1.99> In the Symbol ">" Enter the IP address or domain name you want to query and enter the return! If you want to quit the command, enter EXIT and enter your return. The function of the finger command The function of the finger command is to query the user's information, usually display a username, main directory, stagnation time, login time, login to Shell, etc. in the system. If you want to query the user information on the remote machine, you need to pick up the "@ hostname" after the username, use the format of the [User Name @ Host Name], but the network host to query needs to run the finger daemon.

转载请注明原文地址:https://www.9cbs.com/read-115449.html

New Post(0)