How do I view my environment variables?

Printing the Environment from the Shell As other answers have pointed out, one can use /usr/bin/env or /usr/bin/printenv from the command line to see what the environment is in the shell before starting Rails, or in a subshell after starting it. For example: rails s RETURN CTRL-Z env RETURN fg RETURN Displaying ENV from the … Read more