I am using ubuntu 9.10,last night I changed the environment variable for newly installed java. I open /etc/environment file and write the export PATH=$PATH:/home/tarun/jdk1.6.0_18/bin
I saved it but was unable to login again.when I start the linux in recovery mode in terminal and login it shows that /usr/bin and various other paths are not included and show some eror message. When i run echo $PATH,It shows $PATH:/home/tarun/jdk1.6.0_18/bin and no other path variable.
pleasw tell me how to reset path variable to restore them into their original state using terminal,It is not accepting commands like sudo and others and only java , javac and other realted to java are running properly.