Monthly Archives: June 2012

Linux Tips

Set PATH PATH=/usr:/bin/:usr/local/bin:. This is a very important environment variable. This sets the path that the shell would be looking at when it has to execute any program. It would search in all the directories that are present in the above … Continue reading

Posted in Uncategorized | Leave a comment

Some useful scripts

Include multiple jar files and run a java program export JAR_HOME=/usr/local/hadoop-1.0.0 export JAR_LIB_HOME=/usr/local/hadoop-1.0.0/lib for f in $JAR_HOME/*.jar do JAR_CLASSPATH=$JAR_CLASSPATH:$f done for g in $JAR_LIB_HOME/*.jar do JAR_CLASSPATH=$JAR_CLASSPATH:$g done   export JAR_CLASSPATH #the next line will print the JAR_CLASSPATH to the shell. … Continue reading

Posted in Uncategorized | Leave a comment