Networking

 

Networking


  1. Display network information: ifconfig command is used to display all network information(ip address, ports etc)
ifconfig -a
  1. Test connection to a remote machine: Send an echo request to test connection of a remote machine.

    ping <ip-address> or hostname
    
    Example:
    ping 10.0.0.11
  2. Show IP Address: Display ip address of a currennt machine

    hostname -I
    (OR)
    ip addr show
  3. Active ports: Shows active or listening ports

    netstat -pnltu
  4. Find information about domain: whois command is used to find out information about a domain, such as the owner of the domain, the owner’s contact information, and the nameservers used by domain.

    whois [domain]
    
    Example:
    whois google.com



    Comments