27 September 2017
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.
~$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 email@example.com:/home/hduser/
~$uname : Gives flavour of Linux ~$uname -a :prints the system information in Details Example: 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 Example: nitendragautam@Nemo:/home$ ping www.google.com PING www.google.com (18.104.22.168) 56(84) bytes of data. 64 bytes from dfw25s16-in-f4.1e100.net (22.214.171.124): icmp_seq=2 ttl=53 time=17.1 ms 64 bytes from dfw25s16-in-f4.1e100.net (126.96.36.199): icmp_seq=3 ttl=53 time=16.1 ms ^C --- www.google.com 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
wget <url Link>:retrieve/download webpages to disk Example: wget http://mirrors.gigenet.com/apache/hadoop/common/hadoop-2.8.2/hadoop-2.8.2.tar.gz