Category Archives: UNIX Stuff

Install and uninstall jdk 7 in Linux

Reference: https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps Note: This particular post is purely for my notes. So, I suggest you to visit the reference site 🙂 Java jdk installation Choose the jdk version from here I have chosen jdk7 from here Accept the License and Download: # wget –no-check-certificate –header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u72-b14/jdk-7u72-linux-i586.tar.gz (OR) Download the tar file manually from… Read More »

SCP (Secure Copy) commands

The SCP protocol is a network protocol, based on the BSD RCP protocol, which supports file transfers between hosts on a network. SCP uses Secure Shell (SSH) for data transfer and uses the same mechanisms for authentication, thereby ensuring the authenticity and confidentiality of the data in transit. A client can send (upload) files to… Read More »

Save password in putty

Create shortcut for putty Right click on the putty shortcut > Properties > In “Target”, enter the below content "C:\Program Files\PuTTY\putty.exe" -ssh myusername@IP-Address -pw mypassword -P portNumber

UNIX Commands – Helpful in Hadoop

Few useful UNIX Commands Find how many jars name ending with examples you have inside location /usr/lib/ #find /usr/lib/ -name "*hadoop*examples*.jar" To list all the class name inside jar #find /usr/lib/ -name "hadoop-examples.jar" | xargs -0 -I '{}' sh -c 'jar tf {}' To search for specific class name inside jar #find /usr/lib/ -name "hadoop-examples.jar"… Read More »