1, the actual is not to do code backup, but to upload the attachment backup, after all, the code on my side is mainly through the SVN control, do not need to backup, but in order to lazy, or the entire folder directly packaged.Name= "Your code file
First, Shell introduction------------User|Terminal (equivalent to Bash's interface)|Shell (shell) bash most Linux systems default shell environment|KernelThe user enters the command through the terminal, submits it to the shell, and then invokes the
ENV View variable set also view variable content more powerful than env[[email protected] ~]# echo $HOSTNAME See the name of the variableBinbinlinux[Email protected] ~]# a=1;b=2[[email protected] ~]# echo $a $b can output a value of two variables0
Shell IntroductionThe shell is the intermediate medium used when the system interacts with the computer hardware, and it is just a tool of the system. In fact, there is a layer of stuff between the shell and the computer hardware-the system
The requirements background is:A business, with 3 servers (A,B,C) Doing load balancing, because the scale is too small to use a professional automated maintenance tool at this time. When there is a new requirement, the development colleague changes
Meaning of the "one" shell: First, the Shell's English meaning is "shell"; It is relative to the kernel, because it is based on the kernel, a representation of the user, for example, we see a ball, see its shell, not nuclear. The shell in
Parentheses ():1. The commands in parentheses will be executed in a new sub-shell order, so the variables in parentheses cannot be used by the rest of the script. Multiple commands in parentheses are separated by semicolons, and the last command can
Shell Script Programming Summary (i)Text Processing tool awkAWK is a column-based text Processing tool. It's powerful and has a wide range of applications in shell programming. Here's an example of how awk's common operations are explained.To better
The following features are required for this article: a folder that has a folder that is named by a numeric number requires the deletion of files other than the maximum encoding.Specific implementationGeneral idea: Loop through all the files in the
BasisThe shell of Spark, as a powerful interactive data analysis tool, provides an easy way to learn the API. It can use Scala (a good way to run an existing Java library on a Java Virtual machine) or Python. Start running in the Spark directory
Special variables$ A: The file name of the current script$num: Num is a number starting from 1, and $ is the first argument, and $ is the second argument, ${10} is the tenth argument$#: Number of arguments passed in the script$*: All positional
In the/etc/profile file, there is a script:if Then /etc/bash.bashrcfi What does "dot + space + file" mean here?1, if we want to execute a file, but this file is not executable, at this time we want to use chmod u+x file_name to make the file
In my resume, I wrote that I am familiar with common Linux commands and can do shell programming, so it is necessary to learn shell programming.Read the catalogue:
First, Shell and bash
II. structure and execution of shell scripts
The basics of the shellFirst, Bash has the following features:1. Record command history2. Command and file name completion3. AliasesAlias rm= ' Rm-i '4. Wildcard characters* 0 or more characters?? match one character5 Input and output
The basic control statement of the if...fi statement, which allows the shell to conditionally make a decision and execute the statement.GrammarIf[]thenStatement(s)ifistruefi Shell expression evaluation. If the result value is true, the given
In this article we learned how to use and define variables. According to the urine sex, the general next is to learn the basic data types of operations.Yes, this is still a cliché to talk about this boring but must learn basic data types of
1. Testing the connectivity of the 192.168.4.0/24 entire network segment (while version)#!/bin/bash#author: The Adventures of Tintin (Jacob) #定义变量i控制循环次数, I cycle from 1, once per loop, I self plus 1, until I equals 254 loop exit # Ping An IP in
In the shell script, the color control is often used as followsFormat:" \033[Word background color; text color m string \033[0m"eg" \033[41;36m something here \033[0m"Where 41 of the position represents the background, 36 of the position is the
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