https://www.zhihu.com/question/21418449Mort | Zsh vs. Bash: Incomplete contrast resolution (1) 2014-10-07BdpqlxzWhat's the difference between zsh and bash?A lot of people have written about "why zsh is better than bash", "Why zsh is better than
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
Xi. functionsThe shell function is defined by the description of the shell grammar above and holds a series of commands waiting to be executed later. When the shell function name is used as a simple command name, a series of commands associated with
Transfer from http://blog.chinaunix.net/uid-20328094-id-95121.htmlA very good bash scripting tutorial, at least not in contact with bash can read!Create a scriptThere are many different shells in Linux, but usually we use Bash (Bourne again shell)
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,
Basis
Learn the basics of Bash. Specifically, enter man bash and browse at least the full text; it's simple and not long. Other shells may work well, but Bash is powerful and available in almost all cases (learning Zsh,fish or other shells is
Here is a bash script compilation tutorial written by old American. It is very good. At least I have never touched bash and can understand it!Create a scriptLinux has many different shells, but we usually use Bash (Bourne again shell) for shell
Ix. unfoldingThe expansion of the command line is done after splitting the word into words. There are seven types of expansion: curly brace expansion, wavy line expansion, parametric and variable expansion, command substitution, arithmetic expansion,
Bash is the Linux default shell, and Han O Sinox is also installed, although Sinox does not use bash by default, but the user may be compromised by a vulnerability once it is used, so it must be repaired quickly. Although Sinox uses FreeBSD's ports,
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.