Tag: symbolic link

symbolic or soft link for java

java -version
which java
ls -lrt /usr/bin/java
lrwxrwxrwx 1 root root 26 Dec 24 2012 /usr/bin/java -> /usr/java/default/bin/java

cp -R /opt/java7/ /usr/java
rm latest
rm: remove symbolic link `latest’? y
ln -s /usr/java/java7/ /usr/java/latest

Advertisements