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
On Linux, we can easily use the SCP command to copy files remotely, but because the SCP command itself has no save password option, so in the shell can not be like samba that way to save the password, more trouble, the following two implementation
On the machine to open an account to colleagues, the result of SSH landing, complete, highlighting are not, but my own account can be. The first suspicion is that there is a problem with the. bashrc file setting, compared to 2 user directories, this
Shell Learning Notes1, View/etc/shells, see how many shells are available.2, a command that has been used exists. Bash_history, but ~/The . Bash_history records All instructions recorded before the previous login and is successfully logged out
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
Problem: String output of ' 1,2,3,4,5 ' is used, separated by 1 2 3 4 5Feature: There are no spaces in the stringWorkaround 1:[Plain]View Plaincopy
#!/bin/bash
Var= ' 1,2,3,4,5 '
var=${var//,/} #这里是将var中的, replace with a space
Ctrl+A-JumpTo the start of the lineCtrl+B-MoveBack aCharCtrl+C-TerminateThe commandIs it the most used?Ctrl+D-DeleteFromUnder the cursorCtrl+E-Jumpto theEndof the lineCtrl+F-MoveForward aCharCtrl+K-DeleteTo EOLCtrl+L-ClearThe screenClear screen,
usage: seq [options] ... Mantissa or: seq [options] ... First number mantissa or: seq [options] ... The first number increment mantissa Prints the number to the mantissa starting with the specified increment from the first number.
Execute command : XargsWhen find produces a list of files , It is sometimes useful to provide the list to another command .Case :$touch abc.c ERD.C oiy.c$ll./erd.c./abc.c./oiy.c$find-name ' *.c ' | RmRM: missing operandPlease try "rm--help" for more
1.shell scripts are a collection of commands. Record a set of commands that need to be executed to the document, and then call the document.139 e-mail, receive the message at the same time by SMS notification.Shell Footsteps Writing recommendations:
In the previous blog, the implementation of the automated test program was written, and now the developer needs to know the running state of the process that was tested (in this case, the main process running on Linux) before the exception exited,
Standard input and output with standard error outputStandard input/The output is probably the most basic concept in the design principles of software tools..His idea was to:The program should have a data source,Data Export(where are the data going?),
1.Shell command line writing rules:Multiple commands can be executed on a command line, but required;Long command statements can be expanded with \ on the command line2. Execute Shell Program2.1./test.sh2.2 Bash test.sh2.3 In order to compile and
#common. SH, which is mainly some function # perform compiled cleanup work function make_clean { # $RE _ins based on the value of the variable, To determine whether to perform cleanup work if [ $RE _ins == 1 ]; then make clean >/dev/
1. pwdPWD: Displays the absolute path of the current directory2. cdCD Document: Go to subdirectory cd/usr/local/lib: Go to the specific directory CD.: Return to Parent directory CD/: Return root directory3. mkdirmkdir directory: Creating
Fly2015I love cracking training first class elective assignments section 6 Practice example programs. Have to repeat that sentence, have not seen this shell, the shell is a compression shell, relative to the compression shell, the encryption shell
Shell script checks the memcache process and automatically restartsRevised version:#! /Bin/sh# Check memcache process and restart if downMm_bin = "/usr/local/bin/memcached"Mm_log = "/home/xxx/memcached_check.log"Mm_ports = ("11211" "11212 ")Mm_param
/Etc/profile and/etc/bashrc, interactive and non-interactive, the difference between login and non-login shell, bashrcnon-loginThe online memcached crashes again and still does not get the core file. Check the cause and find that the script for
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