Create a Shell script

Source: Internet
Author: User
The establishment of Shell scripts-general Linux technology-Linux programming and kernel information. The following is a detailed description. Shell programs can be stored in files. Such command files interpreted and executed by Shell are called Shell scripts ). A Shell script can contain any Linux Command typed from the keyboard.

The procedure for creating a Shell script is the same as that for creating a common text file. The editor (such as vi) is used for program input and editing. For example, to create a Shell script named ex1, enter the following command at the prompt:

$ Vi ex1

After entering the vi insertion method, you can enter the program line. After editing, write the edited buffer content to the file and return it to the Shell command status.

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.