Network Commands

In this page we can explore more about network commands.

  1. ping

ping
Ex: ping guvi.in

To check the reachability of a host on an Internet Protocol (IP) network.

  1. Nslookup

nslookup 
Ex: nslookup guvi.in

To query DNS servers for domain information.

  1. Traceroute

traceroute 
Ex: traceroute guvi.in

To display the route and measure transit delays of packets across an Internet Protocol network.

  1. Netstat

netstat 

To display active network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.

  1. nmap

nmap 
Ex: nmap guvi.in

To discover hosts and services on a computer network, creating a "map" of the network.

  1. tcpdump

tcpdump
Ex: tcpdump -i eth0

To capture and analyze network traffic.

  1. Host

host
Ex: host guvi.in

The host command shows the IP address for a hostname and the domain name for an IP address. Also, it is used to get DNS lookup for DNS related issues.

  1. ARP

arp 

The arp command is short for Address Resolution Protocol. This command is used to see and include content in the ARP table of the kernel.

  1. ifconfig

ifconfig

ifconfig is used to initialize an interface, configure it with an IP address, and enable or disable it. It is also used to display the route and the network interface.

  1. ip

ip
Ex: ip a or ip addr

This is the latest and updated version of ifconfig command.

This command gives the details of all networks like ifconfig.

  1. telnet

telnet
Ex: guvi.in 443

Used to check open ports of an server.

Last updated