Linux Shell Basics

Source: Internet
Author: User

Shell Foundation: Shell is the user interface of the system, which provides an interface for users to interact with the kernel. It receives the command entered by the user and feeds it into the kernel to execute.  We followed the Shell's grammar script and passed it on to Shell,shell to explain to us the contents of nuclear energy identification in the system, and the kernel then controlled the computer hardware to execute the scripts. The shell is actually a command interpreter that interprets the commands entered by the user and sends them to the kernel. In addition, the shell has its own programming language for editing commands, which allows the user to write programs composed of Shell commands. Shell programming languages have many features of a common programming language, such as a looping structure and branching control structures, and shell programs written in this programming language have the same effect as other applications. Second, create and execute the shell script:
" \033[31m hello,world \033[0m"

How to execute the script:

1. Bash Interpretation execution:

Bash hello.sh

2. Script Add Execute permission:

755 hello.sh  # Plus Execute permissions source hello.sh     # Execute program 

Order of execution of the command:

1, command path >>>2, alias >>>3, Bash Path command >>>4, environment variable corresponding command

Third, view the history command:

Linux Shell Basics

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.