I installed java-8 using a PPA. After that I gave a command:
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
I had heard somewhere that this command does temporary changes. But after many logouts and logins, these commands below still works (I think due to that export ... command):
java -version
javac -version
But when I give the command:
export -p
It shows a list of environment variables, but in that list, does not show variable JAVA_HOME. Moreover, I wonder how the commands java and javac still works!
Can someone tell me in which file export command make changes? Are they temporary or permanent? And what else happens above? Please elaborate!