Monday 10 September 2012

Set JDK path in linux and create alise or shortcut in linux


How to set JDK path in linux:

STEP:1
Open kernel and paste :
vim /etc/bashrc

STEP:2
Copy following line and past at last in bashrc file.

export JAVA_HOME="/usr/src/jdk1.6.0_11"
export PATH="$JAVA_HOME/bin

STEP:3
Close all kernel and then Open.


How to create alise or shortcut in linux:

STEP:1
Open kernel and paste :
vim /etc/bashrc

STEP:2
Copy following line and past at first line in bashrc file.
alias desk='cd /root/Desktop'

STEP:3
Close all kernel and then Open.

Now, You just type desk on kernel and go to Desktop location.

No comments:

Post a Comment