Author: Ruwantha Nissanka

8 steps to check your network interface information

In a GUI, checking the state of a network interface card is pretty easy. That is to say, you just have to click on the network information icon to see all the details. On the other hand, do you ever wonder how to check it in Linux command line? It is really simple task if you use mii-tool command. Mii-tool gives you the following features: View and modify network interface configurations Control the links Set auto-negotiation mode Set duplex modes In this guide, I’ll show you how to use this tool to get the most out of it. Step 01 : Installation You can install the mii-tool using the following command. #sudo apt install net-tools Step 02 : Check a Single Interface To see the information on a specific interface, run the following command. #sudo mii-tool <interface_name> However if no interface is specified, then it will check all available interfaces.  In other words, it will check all interfaces from eth0 to eth7. Step 03 : See Detailed Information You can see detailed information on each card using -v option. #sudo mii-tool -v <interface_name> Step 04 : Set Network Interface Speed To set the speed of the interface manually, use the following command. #sudo mii-tool –force <option> For example, here I have specified the speed of the eth0 interface to 10 Mbit. Step 05 : Restart Auto-Negotiation Network devices use an auto-negotiation protocol to...

Read More

Learn how to send emails using Linux in 5 minutes

If I ask you how to send an email, what would you say? You will say go to gmail or yahoo mail and send the email. But, do you know that you can send emails using your Linux command line? Yes! you heard me right. We can do this by using the mail command. In other words, it is a simple email client that gives you the basic email facilities. Moreover, this will allow you to send and read emails in your inbox. In this guide, I will show you how to do that. Step 01 : Installation Firstly, you have install it by using the following command #sudo apt install mailutils Step 02: Sending a simple mail Run the following command to send a simple mail. Moreover, you can set the subject of the mail and the receiver’s address in the command #mail -s “<subject>” <Email_address> Once you hit enter, you will be asked to add the CC address and type in the message. After that, the mail command would send the message. Step 03 : Setting the message body You can also set the message body in just one line of command #mail -s “<subject>” <Email_address> <<< <message> Step 04 : Get the input from a file Similarly, you can direct the mail command to get the message from a file #mail -s “<subject>” <Email_address> < <location> Step...

Read More

10 Examples of using nslookup in linux

The main use of nslookup is to help with any DNS issues you may have. You can use it to find the IP address of a host, find the domain name of an IP address, or find mail servers on a domain. This tool can be used in two modes. An interactive Non-interactive mode The Interactive mode is used to query DNS-Server about various domains and hosts. Non-Interactive mode is used to query about information of a domain or host. Interactive mode In nslookup command in Linux Example1: You can enter to the interactive mode by using the following command #nslookup If you only know the hostname of a host and you need to find the ip address of that host, type the hostname Example2: Similar to the previous command, you can type the ip address to find out the domain using reverse domain lookup Example3: You can set the DNS query type to NS to display the NS records only. >set type=ns ><URL> Example4: Query only Mail servers. To do that set the DNS query type to MX to display the MX records >set type=mx ><URL> The non-interactive mode in nslookup command The non-interactive mode is invoked by typing the nslookup command, followed by the name, domain or the IP address of the host/network to be looked up. Example 5: Run the following command to query SOA record #nslookup -type=soa <URL> Example6: You can enable Debug mode...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.