View and import environment variables:
View All environment variables
Import variables at runtime. After the system starts up next time, these variables no longer exist.
A set without parameters can display all environment variables, and a set with parameters can control Shell functions. For example, the-C option does not use a rewrite file with Xu redirection.
Non-temporary environment variables must be written to the system file:
The system environment variables are set here. For example, to set the Java environment variable, add Path = $ path:/usr/Java/jre1.5.0 _ 09/bin at the end of the file.
Export java_home =/usr/Java/jre1.5.0 _ 09
Export classpath = $ java_home/lib :.
Variable settings during login shell login. If ~ /. Bash_profile or ~ /. Bash_login, Bash does not execute this file.
I have never touched the login shell, but it is not clear.