Nitendra Gautam

Linux Networking Commands

Linux is a family of free and open-source software operating systems built around the Linux kernel. Typically, Linux is packaged in a form known as a Linux distribution for both desktop and server use.

This post includes some of the useful and important Linux networking commands.

Networking Commands

~$ssh -securely log into remote hosts
~$telnet :log into remote hosts
~$scp :Securely copy files between hosts
~$sftp :securely transfers files between hosts
~$ftp :Copy file between hosts
~$evolution :GUI email client
~$mutt :textbased email client
~$mail :minima email client 
~$mozilla :web browser
~$lynx :text only web browser
~$srln :Read usent news
~$gaim :Instant messaging/IRC
~$talk:linux/unix chat 
~$write :send messages to terminal
~$mesg  :prohibit talk/write
~$a2ps -Pprinter <textfile>  :Prints textfile to named printer
~$lpr  -Pprinter psfile  :print postscript file to named printer
 Copy from local windows/Linux to Remote Linux based server
~$scp -P 22 <file-name> <user-name>@<ip-address>:<remote-location-to-copy>
 Example: Copying file from
~scp file1.tar.bz2 hduser@

~$uname : Gives flavour of Linux
~$uname -a :prints the system information in Details
nitendragautam@Nemo:/home$ uname -a
Linux Nemo 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux

~$hostname :prints the system hostname
~$hostname -f : prints the full hostname 
~$ifconfig :Set/display Network Information
~$host :lookup DNS
~$whois: look up domain registrants 

~$ping :Check if host is reachable

nitendragautam@Nemo:/home$ ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=2 ttl=53 time=17.1 ms
64 bytes from ( icmp_seq=3 ttl=53 time=16.1 ms
--- ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2007ms
rtt min/avg/max/mdev = 16.107/16.649/17.191/0.542 ms

~$tracerate :view Network path to host

Download file over the network

wget <url Link>:retrieve/download webpages to disk

Example: wget