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
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
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
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
Differences between the set, ENV, and export commands
(11:24:46)
Reprinted
Tags:It
Set: display the current shell variable, including the current user's variable env display the current user's variable export display the shell
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
Set,env and export three commands can be used to display shell variablesset displays variables for the current shell, including variables for the current user env Displays the current user's variables Export Displays the shell variables currently
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,
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.