The theoretical foundation of Linux self-study _shell

Source: Internet
Author: User

1) This article is dedicated to people who insist on self-study

I converted from network management to a Linux OPS engineer and summed up some experience. Write him out in the hope that he can help more people.

2) This article introduces the basic theory of Shell programming in Linux

What is a shell script?

The shell is a shell of a Linux system that allows users to implement functions through its operating system.

A shell script is a file consisting of variables, commands, and control statements. Execute it through the shell to achieve some kind of effect.

b How to execute it?

There are three types of Linux:

/bin/sh Script Name

Full path/script name #此时脚本需要有执行权限

. Full path/script name #注意此方法执行后, the variables in the script will change to global

C Shell Script basic format (fixed format is a standard, in order to make their ideas clearer, but also for others to understand better)

#!bin/sh

Definition of a variable

Conditional control Statements

The theoretical foundation of Linux self-study _shell

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.