Here’s a quick way to access your environment variables from the CLI.
User the “%” key in conjunction with your “” key to auto complete your environment variables.
pandora:/ # echo $J <TAB><br /> $JAVA_BINDIR $JAVA_HOME   $JAVA_ROOT   $JDK_HOME    $JRE_HOME<br /> pandora:/ # echo $JAVA_ <TAB><br /> $JAVA_BINDIR $JAVA_HOME   $JAVA_ROOT<br /> pandora:/ # echo $JAVA_HOME<br /> /usr/lib/jvm/java
The traditional way is to “env | grep [variable name]
”