Skip to main content

Command Palette

Search for a command to run...

Managing Networking based on Linux

Published
2 min read
Managing Networking based on Linux
M

Hi, How are you !! Hope you doing good....

I got introduced to Cloud initially. As I went ahead learning what is cloud and how it works, then got to know a field which is DevOps that makes Cloud model more effective.

So, as I started working & got good experience on AWS. I have been learning the DevOps tool and technologies on how to use it with the Cloud, which will give me good understanding on how Cloud and DevOps go hand in hand to deploy my applications.

Last Blog Review

In the last blog we understood, what is ssh keygen, how it’s used, and what are the advantage of using ssh keygen in practical situation. As you can’t give the private .pem file key generated while creating EC2 machine maintaining security. Instead you can create your own ssh keys give the private key to required user’s and then just delete the public key of it later on in the EC2 machine, which stops their access to EC2 machine.

Let’s understand Networking on Linux

  1. To check the IP address - Shows and configures the network interfaces on the current system

     ifconfig
    
  2. The Linux command to display or set the system's hostname

     hostname
    
  3. To configure wireless network interfaces.

     iwconfig
    
  4. To trace the route that packets take from your system to a destination host or IP address.

     traceroute google.com
    
  5. To connect to remote systems or network services and allowing you to interact with a remote server or device over a text-based interface.

     telnet cricket.com 80
    
  6. To query Domain Name System (DNS) servers and retrieve domain name information, such as IP addresses, mail servers, and other DNS records.

     nslookup google.com
    
  7. To display information about a user on the system

     finger raj
    
  8. To check if internet connection is working

     ping google.com
    
  9. To Establishes a secure encrypted shell session with a remote system over the SSH protocol

     ssh user@A.B.C.F
    
  10. To Securely copy files between the local and remote systems using the SSH protocol

    scp [options] source destination
    
  11. To interact with APIs, download files, upload data, and troubleshoot network services.

    curl -O https://cricket.com/schedules.txt
    
  12. To download files from the web using HTTP, HTTPS, and FTP protocols.

    wget -O https://cricket.com/schedules.txt
    
  13. To displays bandwidth usage on an interface by showing the current connections and the data transfer rates between hosts.

    sudo iftop -i eth0
    
  14. to configure a firewall on a Linux system

    sudo ufw status
    
  15. To see how much bandwidth each process on your system is using

    sudo nethogs eth0
    

Conclusion →

In this blog we understood, basic but very useful commands of the networking used in Linux which are used in day to day life for troubleshooting the connectivity issue.

Image credit → https://olinux.net/linux-network-monitor/

💡
That’s a wrap for today’s post! I hope this has given you some valuable insights. Be sure to explore more articles on our blog for further tips and advice. See you in the next post!

More from this blog

Mihir's Tech blog

69 posts