Watch out! 10 Linux networks and monitoring commands you need to know

Source: Internet
Author: User
Tags nslookup

Guide Below is a list of the 10 basic network and Monitoring commands that each Linux user should know about. Network and Monitoring commands are similar to these:hostname, Ping,ifconfig, Iwconfig, netstat, nslookup, traceroute, finger, telnet, Ethtool is used to view the Linux server IP address, manage server network configuration, establish a network link between Linux with Telnet and Ethernet, view server information of Linux, etc. Let's look at the use of network and monitoring commands under Linux.

hostname

Hostname no option to display host name

Hostname–d Display the domain name of the machine

HOSTNAME–F display the full hostname and domain name

Hostname–i Displays the IP address of the current machine

Ping

Ping sends the packet to the user-specified address. When the packet is received, the target machine sends a return packet. There are two main functions of ping:

    1. To confirm that the network connection is unblocked.
    2. Used to view speed information for a connection.

If you ping www.yahoo.com it will return its IP address. You can stop the command by CTRL + C.

ifconfig

View the user network configuration. It displays the current network device configuration. This tool is extremely useful when you need to receive or send data for error lookups.

Iwconfig

The Iwconfig tool is similar to Ifconfig and Ethtool. is for the wireless card. You can use him to view settings for basic Wi-Fi network information, such as SSID, channel, and encryption. There are many other configurations that you can also view and modify, including receive sensitivity, Rts/cts, the Shard size of the sending packet, and the retransmission mechanism of the wireless card.

nslookup

Nslookup This command, when you have an IP address, can use this command to display the hostname, and you can find all the IP addresses for a given domain name. You must be connected to the Internet to use this command.

Example. Nslookup blogger.com

You can also use Nslookup to get the hostname from the IP or get the IP from the host name.

traceroute

A handy tool. Can be used to view the IP address, hop count, and response time of the router that the packet passed through when it was submitted to the remote system or Web site. You must also link to the Internet to use this command.

Finger

View user information. Displays the user's login name, real name, and login terminal name and login rights. This is a very old Unix command and is now seldom used.

telnet

Connecting to the target host via the Telnet protocol, if the Telnet connection can be completed at either port, it represents a good connection between the two hosts.

Telnet hostname port– uses the specified port Telnet host name. This is usually used to test whether the host is online or if the network is healthy.

Ethtool

Ethtool allows you to view and change many of the network card settings (not including the Wi-Fi network card). You can manage many advanced settings, including TX/RX, checksum, and wake-on-LAN capabilities. Here are some basic commands you might be interested in:

ETHTOOL-I displays driver information for a specific NIC, especially useful when checking for software compatibility

Ethtool-p initiates the specified behavior of an adapter, such as flashing the adapter's LEDs to help you identify the interface name in multiple adapters or interfaces

Ethtool-s Displaying network statistics

Ethtool Speed <10|100|1000> Set the adapter's connection rate in Mbps

netstat

Discover the most useful and common Linux commands for host connections. You can use "netstat-g" to query all multicast groups (networks) that the host subscribes to

Netstat-nap | grep Port will show the process ID of the application using that port

Netstat-a or Netstat–all will display all connections that include TCP and UDP

Netstat–tcp or netstat–t will display a TCP connection

NETSTAT–UDP or Netstat–u will display a UDP connection

NETSTAT-G will display all multicast networks that the host subscribes to.

This article was reproduced from: http://www.linuxprobe.com/ten-linux-control.html

Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/

Watch out! 10 Linux networks and monitoring commands you need to know

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.