MySQL database backup and recovery Brief:One, database backupSecond, database recoveryOne, database backup1, Backup simple description: System operation, incremental backup and overall backupExample: Every Sunday overall backup, Monday to Saturday
One, variable
Variables are the use of a simpler string instead of some special-meaning settings and data. Taking path, this path replaces the absolute path of all common commands, and with the variable path, we no longer need to enter the
Bash Shell Basic Features II(1) globbingText name wildcard: Meta characters*: matches any character of any length;?: matches any single character;Example: A*b:aab, AB, a123b;A?b:[]: matches any single character within the specified range;Example: [0-
One of the basic features of the bash shellFirst, the Order historyBash records the command that the user executed in the shell session in the buffer, and when it exits normally, it is recorded in the current user's home directory.
Here are some of the shell's commonly used shortcut keys, shortcut keys to play familiar with to a certain extent, can improve productivity drops ... + a switch to command line start + e switch to command line end + L Clear Screen
Case: Flow control statements• Loop Statement For...done statement• Use (()) to extend the method of using arithmetic operations in the shell• Looping statement nesting• Jump out of the loop: Break and Continueshift parameter Left SHIFT commandHow
1) Start specifying the script interpreter#!/bin/sh; #!/bin/bash2) opening plus version and copyright information3) No Chinese comments in script4) file saved with. sh extension5) Full-time write-in of paired content to prevent leakage6) [] have
1. Simulating the Linux login shell#/bin/bashEcho-n "Login:"Read nameEcho-n "Password:"Read passwdif [$name = "CHT"-a $passwd = "abc"];thenecho "The host and password is right!"else echo "Input is error!"Fi2. Compare two number sizes#/bin/bashecho
Shell Script pros and cons analysisThe shell uses external commands and some of the default tools of the bash shell, so it often calls an external library of functions, so the command cycle is less than the traditional programming language.Therefore,
First, Introduction1. Variable type:User-defined variables (local variables)Environment variables: Define each user's operating environment, has learned path,ps1; to be permanent, write to the corresponding locationPre-defined variablesPositional
1. After opening the terminal prompt, $ represents a normal user, #表示管理员用户root, root is the most privileged user in the Linux system.2. A shell script is usually a text file with a #! start, where #! precedes the interpreter path. Example:
Similar to other programming languages, the shell supports A for loop.The general format for A for loop is:For variable in list Docommand1command2...commandndoneA list is a sequence of values (numbers, strings, and so on), each separated by a space.
Processing of parameter processing-shell incoming parameters1. The number of arguments passed to the script by $# 2. $* displays all parameters passed to the script in a single string. Unlike positional variables, this option parameter can exceed 9 3
String-related operations are often involved in writing shell programs. There are many command statements, such as awk,sed , that are capable of doing string operations. In fact, the shell built a series of symbols to achieve similar effects, using
First name the shell command as a. sh fileSave the above code as test.sh and CD to the appropriate directory:chmod +x./test.sh #使脚本具有执行权限./test.sh #执行脚本If an error/bin/bash^m:bad interpreter:no such file or directoryOne of the reasons for the
Difference:internal command: Internal commands are built into the shell. The internal command executes very quickly when the shell command is executed. This is because no other process has been created because of the execution of this command. For
When you practice select in Http://wiki.ubuntu.org.cn/Shell%E7%BC%96%E7%A8%8B%E5%9F%BA%E7%A1%80, you find that the direct SH xx.sh cannot be executed successfully.Script content:#!/bin/bashecho "What's your favourite OS?"Select Var in "Linux" "Gnu
1.shell between the operating system and the user. Responsible for interpreting the command line2./etc/shells Record login system effectively supports Shell3./ETC/PASSWD Finally, someone who can see the user's default shell4. Directly enter the name
Experiment Server Two:192.168.77.189192.168.77.190
Server-free key login settings:[email protected]_168_77_189 ~]# Ssh-keygenGenerating public/private RSA key pair.Enter file in which to save the key (/ROOT/.SSH/ID_RSA):Enter passphrase (empty for
Installing Redis Services and PHP Redis extensions One, redis related file downloadSecond, Redis installation iii. Phpredis expansion and installation I. Downloads of documents related to this document1, Redis:http://redis.io/download2. PHP redis
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