Ruby Environment Variables
The Ruby interpreter uses the following environment variables to control its behavior. The ENV object contains a list of all currently set environment variables.
|DLN_LIBRARY_PATH||The path to dynamically load the module search.|
|HOME||The directory to move to when no arguments are passed to Dir::chdir. Also used for File::expand_path to extend "~".|
|LOGDIR||The directory to move to when no parameters are passed to Dir::chdir and the environment variable HOME is not set.|
|PATH||The search path for the child process and the search path for the Ruby program after the -S option is specified. Each path is separated by a colon (separated by a semicolon in DOS and Windows).|
|RUBYLIB||The search path for the library. Each path is separated by a colon (separated by a semicolon in DOS and Windows).|
|RUBYLIB_PREFIX||Used to modify the RUBYLIB search path by replacing the library's prefix path1 with path2 by using the format path1;path2 or path1path2.|
|RUBYOPT||Command line options passed to the Ruby interpreter. Ignored in taint mode (where $SAFE is greater than 0).|
|RUBYPATH||The search path for Ruby programs after the -S option is specified. Priority is higher than PATH. Ignored in taint mode (where $SAFE is greater than 0).|
|RUBYSHELL||Specifies the shell to use when executing the command. If this environment variable is not set, use SHELL or COMSPEC.|
For Unix, use the env command to see a list of all environment variables.
HOSTNAME=ip-72-167-112-17.ip.secureserver.net RUBYPATH=/usr/bin SHELL=/bin/bash TERM=xterm HISTSIZE=1000 SSH_CLIENT=126.96.36.199 1742 22 SSH_TTY=/dev/pts/1 USER=amrood JRE_HOME=/usr/java/jdk/jre J2RE_HOME=/usr/java/jdk/jre PATH=/usr/local/bin:/bin:/usr/bin:/home/guest/bin MAIL=/var/spool/mail/guest PWD=/home/amrood INPUTRC=/etc/inputrc JAVA_HOME=/usr/java/jdk LANG=C HOME=/root SHLVL=2 JDK_HOME=/usr/java/jdk LOGDIR=/usr/log/ruby LOGNAME=amrood SSH_CONNECTION=188.8.131.52 1742 184.108.40.206 22 LESSOPEN=|/usr/bin/lesspipe.sh %s RUBYLIB=/usr/lib/ruby G_BROKEN_FILENAMES=1 _=/bin/env