Overview of Shell and bash

Source: Internet
Author: User

Shell is an interactive command interpreter. Shell is independent of the operating system. This design allows you to flexibly choose the appropriate shell. Shell

You can type a command in the command line,After being explained by shell, it is transmitted to the Operating System (kernel) for execution.

Shell is a command processor. It is a command that reads and explains your input.Program. Except for a command

In addition to the cylinder,Shell is also a programming language.You can write programs (called source programs) that can be interpreted by shell. These source programs can contain

Shell Program Design commands.In addition to interpreting commands, shell can also be configured and programmed.

Shell has its own language that allows users to write programs and run them in a complex way. ShellProgramming LanguageFeatures of many common programming languages, such

For example:Loop and ControlStructure. You can generate Shell programs as complex as other applications.

 The following is a summary of Shell functions:

Find the command location and execute the associated program; New Value for Shell variables; Execute Command substitution; Process I/O redirection and MPs queue functions;

Provides an explanatory programming language interface, including statements such as tests, branches, and loops.


Bash is the abbreviation of borne again shell, which is a shell. Bash is used by default in Linux.

When you input the bash command in the command line, it is equivalent to entering the bash environment. If it is a bash environment, it is entering a sub-Bash

Environment(It is equivalent to opening a sub-process ).

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.