In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "what are the network commands and monitoring commands in the linux command?" interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn what are the network commands and monitoring commands in the linux command.
Network and monitoring commands are similar to these: hostname, ping, ifconfig, iwconfig, netstat, nslookup, traceroute, finger, telnet, ethtool are used to view linux server ip addresses, manage server network configuration, establish network links with linux through telnet and ethernet, view linux server information, etc. Let's take a look at the use of network and monitoring commands under linux.
1. Hostname
The code is as follows:
Hostname has no option to display the host name
Hostname-d shows the domain name to which the machine belongs
Hostname-f displays the full hostname and domain name
Hostname-I displays the ip address of the current machine
2. Ping
Ping sends the packet to the user to specify the address. When the packet is received. The target machine sends a return packet. Ping has two main functions.
1. Used to confirm that the network connection is open.
two。 Used to view the speed information of the connection.
If you ping www.yisu.com it will return its ip address. You can stop the command through ctrl+C.
3. Ifconfig
View the user's network configuration. It displays the current network device configuration. This tool is extremely useful for error lookups that need to receive or send data.
4. Iwconfig
The iwconfig tool is similar to ifconfig and ethtool. It is used for wireless network card. You can use it to view and set basic Wi-Fi network information, such as SSID,channel and encryption. There are many other configurations that you can also view and modify, including reception sensitivity, RTS/CTS, the fragment size of the transmitted packet, and the retransmission mechanism of the wireless network card
5. Nslookup
When the nslookup command has an ip address, you can use this command to display the hostname and find all ip addresses for a given domain name. And you have to connect to the Internet to use this command.
Examples
The code is as follows:
Nslookup blogger.com
You can also use nslookup to get the hostname from ip or ip from the hostname.
6. Traceroute
A convenient tool. It can be used to view the IP address, hop count, and response time of the router that the packet passes through when it is submitted to a remote system or website. Similarly, you must link to the Internet to use this command.
7. Finger
View user information. Displays the user's login name, real name, as well as the login terminal name and login permissions. This is an old unix command that is seldom used now
8. Telnet
Connect the target host through the telnet protocol, and if the telnet connection can be completed on any port, it means that the connection between the two hosts is good.
Telnet hostname port-uses the specified port telnet hostname. This is usually used to test whether the host is online or whether the network is normal.
9. Ethtool
Ethtool allows you to view and change many settings of the network card (not including the Wi-Fi network card). You can manage many advanced settings, including tx/rx, validation, and Wake up. Here are some basic commands that might interest you:
Display driver information for a specific network card, which is especially useful when checking software compatibility.
The code is as follows:
Ethtool-I
Start the specified behavior of an adapter, such as flashing the adapter's LED light, to help you identify interface names in multiple adapters or interfaces:
The code is as follows:
Ethtool-p
Display network statistics:
The code is as follows:
Ethtool-s
Sets the connection speed of the adapter in Mbps:
The code is as follows:
Ethtool speed
10. Netstat
Find the most useful and generic Linux command for host connections. You can use "netstat-g" to query all multicast groups (networks) subscribed to by this host.
The code is as follows:
Netstat-nap | grep port will display the process id of the application using this port
Netstat-an or netstat-all will display all connections including TCP and UDP
Netstat-tcp or netstat-t will display the TCP connection
Netstat-udp or netstat-u will display the UDP connection
Netstat-g will show all multicast networks that the host subscribes to.
At this point, I believe you have a deeper understanding of "what are the network commands and monitoring commands in the linux command?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.