Pages

Subscribe:

Popular Linux Terminal Commands for Networking You Must Know

Linux is a good operating system. It is secure , fast, reliable, funky and it’s open source. I am using linux Ubuntu since aug 2011. We are familiar with Command prompt’s command of windows operating system. But when it comes to Linux very few of us know what the is exactly? If you are facing trouble in network connection or want to download file, sharing, or it could be domain name information these commands will help you.

1-youtube-dl & curl & wget

With the help of these commands you can download files from the internet. Using youtube-dl you can download youtube video. . File which you will download using these command go to the home directory. If you don’t have these tools just install them using following command repectively



youtube-dl - sudo apt-get install youtube-dl
 
curl - sudo apt-get install curl
 
 for downloading execute following commands 

youtube-dl youtube.com/example 
curl -0 website.com/file
wget website.com/file
 
 
 
 
 
 
 

2-ping

Ping send Echo_Request to the specified address. You can check your network connection or you can ping to particular website. In window we simply type ping and then address but in case of linux we use -c which is for finite amount


Command - ping -c 4 facebook.com
 
 
 
4- mtr
mtr command is the mixture of ping and  tracepath command. This command ping and trace at same time


Command - mtr example.com 



5- host
host command will run a DNS Domain lookup. Just execute the command and see the IP addresses which are related to the website


Command - host example.com
 
 
 
6- whois 
whois is the command which you can use to see the whois information of particular website. Just execute the following command to see the whois information on your terminal command window


Command - whois example.com


 
 
 
 
 
7- ifplugstatus
This command will tell you the status of weather network cable is plugged in or not. But before execute the command you have to install this tool by following command

sudo apt-get install ifplud

To check the status of un-pluged cable execute following command


Command - ifplugstatus  ifplugstatus eth0
 
 
 
8- ifconfig 
ifconfig command has a variety of options to configure, tune, and debug your system’s network interfaces. It’s also a quick way to view IP addresses and other network interface information. Type ifconfig to view the status of all currently active network interfaces, including their names. You can also specify an interface’s name to view only information about that interface.

Command - ifconfig          
 ifconfig eth0

 
 
 
 
9- netstat
nestat will show you the current status of the network you using including open socket and routing tables. To see the network status just execute the following command


Command - netstat 



10- dhclient 
dhclient command will help you to release ip address and it will also provide reliability to change your ip address using DHCP server. Just execute the following commands to check the status


Command - sudo dhclient -r
 
           sudo dhclient
 
 
 

0 comments:

Post a Comment