In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the skills of using network-related commands in linux Shell. It is very detailed and has a certain reference value. Friends who are interested must finish reading it.
Ifconfig
This command is consistent with Windows's "ipconfig" function and is used to display details such as network interface, subnet mask, and so on.
The left column of the ifconfig is the network interface name, which occupies 10 bytes, and several columns on the right show the details of the corresponding network interface.
On every system, by default there is a lo called a loopback interface, which points to the current host itself.
The following screenshot shows the message after running this command on the blogger's computer:
Related skills:
1. Print a list of network interfaces
Description: the first ten bytes of the ifconfig output * * column show the name of the network interface, so we use the cut command to extract the first 10 characters of each line.
The screenshot of the run is as follows:
two。 Hardware address (MAC address) spoofing
In some cases, we need to use hardware addresses to authenticate or filter computers on the network, so we can use hardware addresses to cheat.
The command is as follows:
Let's run it and see the results:
Note: this command requires root permission
Host and nslookup
These two commands are the DNS lookup tool
When host is executed, it lists all the IP addresses of a domain name; nslookup is a command similar to host, which is used to query DNS-related details and name resolution.
The following screenshot shows querying the IP address of www.baidu.com on the blogger's computer:
Route
The operating system maintains a table called the routing table, which contains information about how packets are forwarded and through which nodes in the network. You can display the routing table in the following ways
-n specifies that the address is displayed as a number.
The screenshot is as follows:
Traceroute
This command displays all gateway addresses of the packet path. Traceroute information can help us figure out how many hops it takes for a packet to reach its destination. The number of gateways or routers midway gives a measure of the direct distance between two nodes on the network.
Again, let's take a look at the screenshot:
Here, the blogger queries the packet forwarding information of www.baidu.com:
The above is all the contents of this article entitled "what are the skills of using network-related commands in linux Shell?" Thank you for reading! Hope to share the content to help you, more related 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: 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.