1.

List some of the most commonly used LINUX commands.

Answer»

Linux is one of the most commonly used operating systems, with a variety of applications and advances. Knowing the appropriate command to use when working on Linux saves a lot of time and effort. The most common LINUX networking commands are as follows:

  • Ifconfig (Interface configurator)
    • This command displays the route as well as the network interface. It can also be used to set up an interface, assign an IP address to it, and enable or disable it.
    • Syntax: ifconfig
  • traceroute
    • This command is used to troubleshoot a network. It determines the path to the specified goal after detecting the delay. It labels and identifies all of the devices on the path. It takes the path that leads to the destination. It determines the source of network lag and reports it.
    • Syntax : traceroute <destination>
  • tracepath.
    • It's a tool for detecting network delays. It follows the path to the selected destination, identifying each step along the way. It recognises the location where your network is weak if it is weak.
    • Syntax: tracepath <destination>
  • Ping (Packet INternet Groper)
    • One of the most commonly used network troubleshooting commands on Linux is ping. It determines whether two nodes are connected via the network. To test network connectivity, the ping programme makes an ICMP echo request. It continues to run until it is interrupted. The ctrl+c key can be used to stop the execution.
      • Syntax : ping <destination>
    • We can also ping directly using the IP address. The "-c" option in the ping command can be used to limit the number of packets sent.
      • Syntax : ping -c <number> <destination>
  • netstat
    • The netstat command in Linux displays network statistics. It displays statistics on many interfaces, such as open sockets, routing tables, and connection information.
      • Syntax: netstat
    • The netstat command is used in a few different ways, as seen below.
      • To view  the programs:
        • Syntax: netstat -p
      • To find out more about the ports:
        • Syntax: netstat -s
        • This provides thorough information on all of the ports.
      • To receive the routing table's details:
        • Syntax: netstat -r
        • This section contains information about the routing table.
  • ss
    • The ss command in Linux is a substitute for the netstat tool. It's thought to be a lot faster and more informative than netstat. Because ss gets all information from within the kernel userspace, it can respond faster.
    • Syntax: ss
      All TCP, UDP, and UNIX SOCKET connections are listed using this command.
  • hostname:
    • The simple command Linux hostname is used to view and change a system's hostname.
    • Syntax: hostname
  • curl
    • curl is a command-line PROGRAM that allows you to transport data to or from a server using any of the protocols that are supported (HTTP, FTP, IMAP, POP3, SCP, SFTP, SMTP, TFTP, TELNET, LDAP, or FILE).
    • Syntax: curl [options] [URL…]
  • nslookup
    • The nslookup command in Linux is also used for DNS inquiries. It can be used to receive domain names, IP addresses, and other DNS records.
    • Syntax:  nslookup <domainName>
  • ip
    • This is the most recent version of the ifconfig command.
    • Syntax:
      ip a 
      ip addr
    • Like ifconfig, this tool displays the details of all networks. This command can also be used to retrieve information about a particular interface.
  • dig
    • Domain Information Groper is the Linux dig command. This command is used to query the DNS name server during a DNS lookup. It's also used to troubleshoot DNS-related problems. Its primary purpose is to verify DNS mappings, MX Records, host addresses, and all other DNS records in order to have a better understanding of the DNS TOPOGRAPHY. This is a modified version of the nslookup command.
    • Syntax: dig <domainName>
  • route
    • The Linux route command displays and manipulates your system's routing table. A router's job is to figure out the most efficient way to transport packets to their destination.
    • Syntax: route
  • whois
    • The whois command in Linux is used to get all of the information about a website. You can find out everything you need to know about a website, including its registration and who owns it.
    • Syntax: whois <websiteName>


Discussion

No Comment Found