Many testers use shell script to build environment and platform, it seems that the shell script is very powerful, Shell programming go ~ ~ constantly updated in the program

Source: Internet
Author: User

This article from Baidu Encyclopedia.


What is a shell.

The shell, to be exact, is a command-line interpreter, and its role is to follow a certain syntax to interpret and pass the commands that are entered into the system. It provides users with an interface system-level program that sends a request to Linux to run a program, and the user can start, suspend, stop, or even write programs with a shell. The shell itself is a program written in C language, which is a bridge for users to use Linux. The shell is both an imperative language and a programming language (what you call a shell script). As a command language, it interactively interprets and executes commands entered by the user; As a programming language, it defines various variables and parameters, and provides many control structures that are available in higher-order languages, including loops and branches. Although it is not part of the Linux system kernel, it invokes most of the system kernel's functions to execute programs, create documents, and coordinate the operation of each program in a parallel manner.


What is a shell script.

The Shell Script,shell script is similar to the batch processing under Windows/dos, that is, using various commands to put into a file in advance, it is convenient to execute a program file, which is convenient for the administrator to set up or manage. But it is more powerful than batch processing under Windows, and is more efficient than a program edited with other programming programs, after all, it uses the commands under Linux/unix. Another way of saying that is, Shell script is a program written using the functions of the shell, which uses plain text files, writes some shell syntax and instructions inside, and then uses formal representations, pipeline commands, and data flow redirection to achieve the desired processing purpose.

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.