In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what the Linux network and monitoring commands are, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
1. Hostname
Hostname has no option. It displays the host name hostname-d, the domain name hostname-f, the full host name and the domain name hostname-I, and 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:
Used to confirm that the network connection is open.
Used to view the speed information of the connection.
If you ping www.yahoo.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 up 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 sent 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.
Example: 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 a very old command from unix and 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 you may be interested in: ethtool-I displays driver information for a specific network card, and ethtool-p is especially useful when checking software compatibility to start the specified behavior of an adapter, such as letting the adapter's LED light flash to help you identify the interface name ethtool-s in multiple adapters or interfaces. Ethtool speed sets the connection speed of the adapter, in Mbps
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.
Netstat-nap | grep port will display the process of the application using this port idnetstat-an or netstat-all will show all connections including TCP and UDP netstat-tcp or netstat-t will show TCP connection netstat-udp or netstat-u will show UDP connection netstat-g will show all multicast networks subscribed by the host. The above is all the contents of the article "what are the Linux Network and Monitoring commands?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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: 290
*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.