Network Commands

Command Description

ifconfig -a

Lists the IP address and other detailed information about the NIC in your Linux server.

hostname

Displays the hostname of your server.

dig

Displays host information about your server

netstat -lnp | grep program
netstat -lnp | egrep 'program|program|...'

Lists the port numbers in use by one or more programs. It is also a handy command for checking to see whether the specified programs are currently running.

ping IP_address_or_hostname

Checks to see if the specified server is responding on the network.