Linux Monitor Network Traffic Command Line

Maybe you are one of a network of practitioners using the Linux operating system. To analyze, diagnose connection problems, see the network statistics, or download a file, you can use multiple commands via terminal.

Very pleasant indeed for those who are used to working through the terminal when compared with using the graphic, I prefer using the Linux terminal. It feels faster, not hard and fairly with the keyboard only.

As for the tools after very diverse and many options, let's see what are the tools used by an Admin to monitor user:

Curl & wget
Curl or wget if you want to download a file through the terminal. For the ' wget ' it's easy, simply add the link files to be downloaded after the command ' wget '.

While the ' curl ', we first need to install the package by way of entering commands in the terminal like this sudo apt-get install curl. Then if you want to download using curl you need to add the option -O before the link.
curl -O

If this command is the most popular, not just in computers but in smartphone devices also * BB * ping.

Yes, ping network engineers often used to analyze the connection between a computer with another computer, either within one network or outside of the network.

Tracepath commands will browse the ' hop ' which used to be to a specific host. If you are having problems with the network connection, this command may be the solution. By running this command, you can check the connection stop where.

The command can be said to be a combination of mtr between ping and tracepath. MTR will send the packets, and then will show more detail ping time to each ' hop ' traveled.

Host & nslookup
The search order for DNS lookup. You can add a domain name after the command host, then you will get the IP address information is used. And if you add the IP address of his order in the line, you will be given a domain name that uses the IP.

How to use the nslookup command is the same, just add any domain or IP address after the main command.

The whois command displays a on whois records from a website. You will get to know more about the owner and the place where the register website.

Mii-tool & ifplugstatus
The second command is used to find out the status of the physical connection of a computer on the network, the more its main connection via cable. Mii-tool command already installed or the provisioning of Ubuntu, while the ifplugstatus we have to install it first.
sudo apt-get install ifplugd

To see if the cable is already connected to the interfaces in our computer, simply when one of the two commands above. If I prefer to use mii-tool.

This command is used to view the information about the IP address and other interface information.

When ifconfig to see all the information of the active network interfaces. You can also view information specific interface only.
ifconfig eth0

Ifdown & ifup
Ifup and ifdown commands have the same function with the command ifconfig up and ifconfig down. Add the names of the interfaces in the use of the injunction. This command will disable or enable the network interface.

These commands require root permissions in its use.
sudo ifdown eth0
sudo ifup eth0

Dhclient command is used to obtain the IP address of the DHCP server that is connected to your computer. These commands require root permissions.

Running dhclient without any option will give you a new IP address and use the -r option to release the IP address is now used.
sudo dhclient
sudo dhclient -r

This command is used to find out the information that is in or out, sockets that are open, and also the routing table. The way this command without any options to see the open sockets. Use option -p to see what programs are used. Use option -s to see all port information.
netstat -p
netstat -s
That's some commands that are frequently used by practitioners network, especially those using linux OS. May be useful.

Click here for Comments