Basic syntax for BASH
The simplest example of--hello world!
About input, output, and error outputs
Rules for variables in BASH (similarities and differences with C language)
Basic Process Control syntax in BASH
Use of
Basic syntax for BASH
The simplest example of--hello world!
About input, output, and error outputs
Rules for variables in BASH (similarities and differences with C language)
Basic Process Control syntax in BASH
Use of
The simplest example of--hello world!
About input, output, and error outputs
Rules for variables in BASH (similarities and differences with C language)
Basic Process Control syntax in BASH
Use of functions
2.1 Simplest example
Shell commonly known as shell (used to distinguish from the kernel), refers to the "user interface to provide users" command parser (software). It is similar to DOS command and later cmd.exe. It receives the user command and then invokes the
Here's what bash is about, including Bash's color code, Bash's four-class files, how variables are handled in bash, array variables, the shell's procedural programming language, and some simple scripting examples.One, bash color display rules (color
Shell types:Sh-Bourne shell CSH or tcsh-C shell Korn-Korn shell bash-GNU Bourne-again shell
1. Simplest ColumnExample #! /Bin/bash # This is a very simple example echo Hello World
Explanation:
In bash, the first line "#! "And later"/bin/bash
1. Linux Scripting Basics
1.1 Basic Introduction to grammar
1.1.1 Start
The program must start with the following line (must be on the first line of the file):
#!/bin/sh
The symbolic #! is used to tell the system that the parameters behind it
Bash Shell and bashshellI,Terminal Printing
[Root @ cai ~] # Echo welcome to bash!
Welcome to bash!
[Cairui @ cai ~] $ Echo 'Welcome to bash! '
Welcome to bash!
[Cairui @ cai ~] $ Echo "welcome to bash \! "
Welcome to bash \!
(Note: special
1.if is a single branch statement, using the following format:
if condition; Then
Statement
.....
Fi
2.if ... else is a two-spoke statement, using the following format:
if condition; Then
Statement
....
Else
Statement
....
Fi
3.if ...
1. What is shell?
In fact, I have heard of shell before I came into contact with Linux. At that time, I was talking about shell programming and I knew nothing about it. But surprisingly, I remember this term when my memory is really bad. Okay,
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.