The linux environment variable setenvexport is used to describe the set, env, and export commands, difference [root @ localhostroot] # atest [root @ localhostroot] # echo $ atest [root @ localhostroot] # set | grepaate... the linux environment variable set env export is used to describe the set, env, and export commands, difference [root @ localhost root] # a = test [root @ localhost root] # echo $ atest [root @ localhost root] # set | grep aa = test [root @ localhost root] # env | grep a [root @ localhost root] # export a [root @ localhost ro Ot] # env | grep aa = testset: display the current shell variable, including the current user's variable env display the current user's variable export display the shell variable currently exported to the user variable each shell has its own unique variable, which is different from the user variable. The current user variables are irrelevant to what shell you use, no matter what shell you use. For example, HOME, SHELL, and other variables, but shell's own variables, different shells are different, such as BASH_ARGC, BASH, and so on. these variables are only displayed in set and are unique in bash. When an export parameter is not added, it shows which variables are exported as user variables, because a shell's own variable volume can be changed to a user variable through export "export.
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.