Backup and recovery of small-shell _mysql database

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

Linux system patrol Script shell instance

#!/bin/shbackup_timestamp= ' Date +%y%m%d 'Hostname= ' HOSTNAME 'num=89################### Verification File system opt################Memuseopt= '/bin/df-kp| grep/opt | Awk-f ' {print $} ' | Awk-f '% ' {print '} 'If

SHELL-SCP automatically enter the password

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

How the shell used by the user in Ubuntu is specified

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 Notes

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

Common operations built into Linux shell strings (get length, find, replace)

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

Three ways to split a string in a shell

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

Shell shortcut keys

eol

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,

Summary of usage of SEQ in shell

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.  

Shell Learning 45 days----Xargs

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

Shell Footstep Writing

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:

Monitoring of shell scripts specifies the running state of a process

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,

Shell script: Guessing a number game

[[email protected] ~]# cat guess.sh #!/bin/bash#guess number game;n=$[$ random%100]while :d o    read -p  "Please input a number:   " n1    n2= ' echo  $n 1 | sed  ' s/[0-9]//g '      if [ ! -z  $n 2 ]    then         echo 

Shell learns 32 days----read reads a row

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?),

Shell Scripting Learning

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

WDCP Environment Build shell script Analysis--lanmp.sh---lib/common.sh

#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/

Shell Common Commands

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

Manual de-winupack shell combat--my love crack training first class elective assignment six

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 restarts

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-login

/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

Total Pages: 541 1 .... 260 261 262 263 264 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.