Common Network Utilities in Linux

Updated on March 14, 2019
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)

Computers are connected in a network to exchange information or resources each other. Maintaining of system and network up and running is an essentials task of System or Network Administrator’s job.

In this tutorial, I will explain various tools which can be useful when networking with other computers both within the network and across the internet, obtaining more information about other computers.

ping – Determine if remote host is up/available

telnet – Determine if local/remote service is available

netstat – Shows network connections, routing tables, interface statistics
netstat -a – dumps ALL sockets with: service/port and hostname resolution
netstat -an – same as above, but suppresses name resolution
netstat -ntl – suppresses name resolution, shows all TCP and listeners
netstat -ntlp – same as above, includes programs bound to ports
netstat -nulp – returns ALL UDP listeners
netstat -r – returns kernel routing table

Related Article  How to Install VMware Tools in CentOS 6.4

hostname – show or set the system’s host name
hostname hostname

arp – View the system ARP cache

traceroute – View the route packets trace to network host

nslookup  – query Internet name servers

Dig – DNS lookup utility
dig mx