I type this: export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk
so that I can access that directory by typing cd $JAVA_HOME
but every time I close and open the terminal I have to do this again and again. Is there a way of saving this? I did some research but am not understanding how you could add it to the bash_profile
.
I'm on the latest Fedora.
.profile
, not.bashrc
– Gilles 'SO- stop being evil' Nov 21 '13 at 23:25