Bash introduction, bash Vulnerability

Source: Internet
Author: User

Bash introduction, bash Vulnerability

Bash is not just a command parsing program. It has a programming language, which allows you to write shell scripts to complete a variety of tasks that cannot be completed by using ready-made commands, bash scripts can use if-then-elif-else-fi statements, for statements, while statements, until statements, break and continue commands, and case statements, combined with various conditional test statements in Bash, the branch and action of your script are dynamically determined to achieve flexible and powerful processing functions.


What is bash shell export?

Export name
Export name = value

Export outputs the variable to the environment.

Briefly introduces the role of export:
When Bash shell executes a program, it first creates a new execution environment for the program, called a subshell.

In Bash Shell, variables are local, and they only make sense in the subshell that creates them.

When export is used, the variable is set as a global variable, which can be recognized by other sub-shells.

What is bash shell export?

Export name
Export name = value

Export outputs the variable to the environment.

Briefly introduces the role of export:
When Bash shell executes a program, it first creates a new execution environment for the program, called a subshell.

In Bash Shell, variables are local, and they only make sense in the subshell that creates them.

When export is used, the variable is set as a global variable, which can be recognized by other sub-shells.

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.