6
votes
2answers
395 views

What is the difference between `VAR=…` and `export VAR=…`?

What is the difference in doing $ MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=384m" to doing $ export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=384m" and is there any side-effect of doing either in an SSH ...
6
votes
2answers
3k views

Add bash script folder to path?

I have some bash scripts in an application folder that I'd like to use as if they were on my path. If they were straight-up applications, I'd just add the directory to ~/.bashrc, but these are ...
2
votes
1answer
984 views

When I type in terminal: export JDK_HOME=“/usr/lib/jvm/java-6-sun/”, where does it get stored?

I have tried multiple locations, but with no luck of finding where was it added: .bashrc .bash_profile /etc/profile /etc/environment .profile When I do echo $JDK_HOME, I get what I expect ...
3
votes
5answers
1k views

Is ~/.profile sourced by bash?

I'm trying to create a global counter variable to see how many times ~/.profile gets executed. Thus: In ~/.bashrc: # ... if [ "$PROFILE_EXEC_TIMES" = "" ]; then export PROFILE_EXEC_TIMES=0 fi let ...