Make the modified environment variables take effect: source & lt; file with environment variables & gt; View environment variables: env or set persistent environment variables mainly exist in these files: /etc/profile/etc/environment ~ /. Bash_profile ~ /. The bashrc loading priority is: 1-& gt; 2-& gt; 3 & amp;...
Make the modified environment variable take effect: source <Files with environment variables> View environment variables: env or set persistent environment variables mainly exist in these files:/etc/profile/etc/environment ~ /. Bash_profile ~ /. The bashrc loading priority is: 1-> 2-> 3 ≈ 4 (the priority between 3 and 4 is not clear). 1 and 2 are the global environment variables of the system, 3 and 4 are users' personal environment variables: 1 # reference existing environment variables and use colons to separate two environment variables, $ call an existing variable 2 PATH = $ PATH: : : :--: Www.2cto.com 3 # enable it. note: in/etc/environment, you do not need to add the following command 1 export PATHSHELL to set the temporary variable: 1 export PATH = "$ PATH: :--: "Author cokolin
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service