Network Commands

Find the OS information

uname -a

IP link : Shows the network link on your system and status of those links

ip link

UP means you are physically connected and LOWER_UP mean you are connected to it via network

ip address : this command shows your network ip address (not the public ip address), we can also reconfigure the ip address using this command

ip address

ping : This command is used to check the network reachability to an ip address

ping -c5

This send in total 5 pings to an ip address

traceroute : To trace the network route

traceroute <ip>

Shows all the hops that will be taken while routing through an ip address

dig : Shows the dns resoution of the web address


netstat : net statistics

netstat : active network sockets on your host

netstat -l : active processes listening for inbound traffic

Leave a Comment