Networking Command-Linux
 LINUX beginners needing commands which help them basically to get the exact route, check these networking command which will help you in learning process.
* /etc/rc.d/init.d/network  start - command to start, restart or stop the network
* netstat - Display connections, routing tables, stats etc
o List externally connected processes: netstat -punta
o List all connected processes: netstat -nap
o Show network statistics: netstat -s
o Kernel interface table info: netstat -a -i eth0
* ping - send ICMP ECHO_REQUEST packets to network hosts. Use Cntl-C to stop ping.
* host - Give a host name and the command will return IP address, the host command will use both /etc/hosts as well as DNS.
Example: host domain-name-of-server
* traceroute - print the route packets take to network host
o traceroute IP-address-of-server
o traceroute domain-name-of-server
* mtr - a network diagnostic tool introduced in Fedora - Like traceroute except it gives more network quality and network diagnostic info. Leave running to get real time stats. Reports best and worst round trip times in milliseconds.
o mtr IP-address-of-server
o mtr domain-name-of-server
* whois - Lookup a domain name in the internic whois database.
* finger - Display information on a system user. i.e. finger user@host Uses $HOME/.plan and $HOME/.project user files. Often used by game developers.
* iptables - IP firewall administration (Linux kernel 2.6/2.4) .
* ipchains - IP firewall administration (Linux kernel 2.2) .
* socklist - Display list of open sockets, type, port, process id and the name of the process. Kill with fuser or kill.
* nslookup - Give a host name and the command will return IP address Note that nslookup does not use the /etc/hosts file.


























