Backup strategy:
Make a full standby every Sunday and make an incremental backup every day.
One: Fully-prepared script
Cat xtrabackup_full.sh
#!/bin/bash
Local_ip= "$ (/sbin/ifconfig eth0|grep ' inet addr ' |awk-f: ' {print $} ' |cut-d '-f1)"
Email=
Using the Linux shell is my daily basic work, but I often forget some useful shell commands and L tips. Of course, I can remember the order, but I'm not sure I can remember how to use it to perform a particular task. So I began to record these
Experimental three shell program design: Shell Foundation
Experimental purposes:Further consolidate the basic grammar of Shell programming language and deepen the understanding of the learned knowledge.
Experimental requirements1. Use of four
Original address: http://blog.zol.com.cn/2322/article_2321763.html
$ () and ' (anti-quote)
In the bash shell, $ () and "(anti-quote) are used for command substitution.$ echo the last Sunday was $ (date-d "last Sunday" +%y-%m-%d)Get the date of the
Using variables from the shell in awk
One: "' $var '"
In this way, you don't have to change the habit of using the AWK program, which is commonly used by foreigners. Such as:
var= "Test"
awk ' begin{print ' $var ' "} '
This notation is actually a
Gets the names of all the folders under the specified directory/usr/and outputs:
Shell code:
1 #!/bin/bash
2 #方法一
3 dir=$ (ls-l/usr/|awk '/^d/{print $NF} ')
4 for I in $dir
5 do
6 echo $i
7 done
8 #######
9 #方法二
-dir in $ (ls/usr/)
First, System variablesPerform an env, set view system, or environment variable directly at the command line prompt. ENV displays user environment variables, set shows the shell predefined variables and user variables. Can be exported to user
Shell script is our learning operational difficulties, this content simple example shell script advanced, there are any technical guidance, knowledge of the shortcomings are welcome to point out. Process ControlProgramming languages: Sequential
As with the current development language, there are some grammatical differences!
The
Bourne Shell is a standard UNIX shell that was formerly used as a management system. Most of the system administration command files, such as RC
Simple shell programming in Linux
Transfer from: dynamic network Production Guide www.knowsky.com
Basics of shell script writing
From scheduled backup to simple command execution, Linux shell scripts can execute various
Msdn 2005-> Win32 and COM development-> User Interface-> Windows User Experience-> Windows Shell-> shell programmer's Guide-> shell basics-> transferring Shell objects with drag-and-drop and the clipboard
Many applications allow users to transfer
13.2 tips for rebounding shell through webshell in Linux
In Linux, webshell is used to reverse the reverse shell. The application in the Process of website server intrusion and Elevation of Privilege is wider and more frequent than in windows.
The
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As LongPrivate Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As
The memory of the android program is divided into two parts: Native and Dalvik. Dalvik is the Java heap we usually call. The objects we create are allocated here, bitmap is directly allocated on native. The memory limit is that native + Dalvik
1. Shift remove the first parameter
2. $ # provides the total number of parameters passed to shell scripts or functions.While [$ #! = 0] gradually decreases with shift $ #, And the loop ends.DoCase $1 in
EsacShiftDone
3. $ *, $ @All command line
In the past few days, when writing Android. mk, sometimes I always want to print some variables or something. If ECHO is not available, I can find a way to access the Internet.
Finally, I found such an article quite well.
Address:
(I = $ J + $ k )) Equivalent to I = 'expr $ J + $ K'(I = $ J-$ k )) Equivalent I = 'expr $ J-$ K'(I = $ J * $ k )) Equivalent I = 'expr $ J \ * $ K'(I = $ J/$ k )) Equivalent I = 'expr $ J/$ K'
Let expressionsExecute one or more expressions. $
1. CTRL + A returns the character at the front of the edge.
2. When Ctrl + R is used to query history, the command used is prompted.
3. In VI, move to the row header, press the number 0, and move to the end of the row and press $!
4. You can
This article is part 3 of the fifth chapter of "Learning the bash Shell" 3rd Edition, Flow Control, but we will not limit this article. Flow control is a very common part of any programming language, including case. Here, we will continue to learn
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