Go The difference between the three commands of set,env and export in Linux

Source: Internet
Author: User

Transferred from: http://www.2cto.com/os/201306/223758.html

The difference between the set,env and export three commands in Linux the SET command displays the variables of the current shell, including the current user's variables; The ENV command displays the current user's variables;     The Export command displays the shell variables that are currently exported as user variables. Each shell has its own unique variable (set), which is different from the user variable, and the current user variable is not related to what shell you are using, no matter what shell you use, such as Home,shell, But the shell's own variable shell is different, such as BASH_ARGC, Bash, and so on, these variables only set will be displayed, is bash-specific, export does not add parameters, show which variables are exported to the user variables, Because a shell's own variable can be exported "export" into a user variable.

Go The difference between the three commands of set,env and export in Linux

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.