Network management with the Linux Shell

December 2016




Here are some useful commands for Linux network management:
  • ping [-n] machine : Sends a ping to a machine (-n: no DNS))
  • traceroute [-n] machine : Makes a traceroute to a machine (-n: no DNS)
  • netstat [-n] : Shows network usage by processes
  • netstat [-n] -a : Same, with the display of server processes
  • fuser, fstart, lsof : Detailed list of the use of files and network
  • ifconfig -a : Displays the configuration of network interfaces
  • ifconfig interface IP mask : Configure a network interface
  • route [-n] show : Displays the routing table (-n: no DNS)
  • route [-n] add route [gw] gateway : Add a routing entry [gw only]
  • route add default [gw] gateway : Adds a default route [gw only]
  • route delete default : Delete the default route
  • hostname : Displays and sets the machine name
  • /etc/resolv.conf : Configuration file for DNS resolution
  • whois domain name (whois Kioskea.net par exemple) : Displays information about the domain name



Related FAQ:

Related :

This document entitled « Network management with the Linux Shell » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.