Detailed description of the environment variable process. env in Node. js, node. jsprocess. env
Preface
We have been working with O & m gg to deploy the project in the last two days. One problem is our dev, uat, and product environment.
Because it
Differences between shell environment variables and set, env, and export 1. classification of shell environment variables and differences between setenvexport: set: Display (set) private variables and user variables included in shell variables,
Differences between set, env, and export and setenvexport
Set: display the current shell variables, including the current user Variables
Env: Display User Variables
Export: displays the shell variables currently exported as user variables.
For
The env command in the Linux system can display the current user's environment variables and can be used to execute other commands under the specified environment variable. Here's a comparison of the similarities and differences between the set,env
Turn from:shell environment variables and set,env,export differencesI. Classification of shell environment variables and the difference between set env export:Set: Displays (sets) the shell variables, including the private variables and user
Original article link
I. Classification of shell environment variables and differences between set env export:
Set: Display (SET) private variables and user variables included in Shell variables. Shell of different classes have different
The difference between the set, Env, declare, and export display shell variables in LinuxThe shell variable consists of two variables1. Shell Local VariablesLocal variables are defined in a script or command, only valid in the current shell instance,
In some Linux scripts, you need to specify the script's interpreter at the beginning of the line, such as:!/usr/bin/env pythonAgain such as:!/usr/bin/env PerlSo what's the use of env? When do you use this?The reason why the script is started with
Shell Environment Variable Classification and set env export differences:
Set: Display (SET) private variables and user variables included in Shell variables. Shell of different classes have different private variables bash, KSh, and CSH. Each shell
Set: display the current shell variables, including the current user Variables
Env: Display User Variables
Export: displays the shell variables currently exported as user variables.
For example:
[Email protected]: ~ # AAA = BBB: Set a variable. The
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.