Use shell scripts for code backup and database backup

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

Shell Automation Installation Lamp

(a) Installation ideas(1) Source code compile Apache WEB Service(2) Source code compile MySQL DB service(3) Source code compiled PHP WEB service(4) Lamp Source Integration +php page creation(5) Optimization of shell scripts, introduction of

Shell command-----VI

Basic operation of VIA) Enter VI after the system hint sign VI and file name, go to the VI Full screen editing screen: $ VI fileHowever, it is important to note that after you enter VI, you are in command mode and you want to switch to insert mode

Linux Shell Programming-character intercept commands

01. Field Extraction Command Cut + = cut [option] file name-F Column Number: Extract the first few columns-D delimiter: Splitting columns by the specified separatorFor example: Cut-f 2,4 (column number;, comma can extract multiple rows)

Linux Base shell script problem

1. Write Script/root/bin/sumid.sh, calculate the sum of the ID of the 10th user and the 20th user in the/etc/passwd fileSolution: vim/root/bin/sumid.sh#!/bin/bashTenuser= ' cat/etc/passwd | Head-n10 | Tail-n1 |cut-d:-f3 'Twentyuser= ' cat/etc/passwd

Function of Shell programming

First, function definition and invocationA function is a series of commands that are customized in a shell script, and generally the function should have a return value (returning 0 correctly and returning a non-0 error). For error returns, you can

Shell Multi-Process scripting

#!/bin/bashPython_path=/home/huaw/Crawlerpython_name=list_all_v6_crawler.pymax_sync_process=40Echo"Max allowed Ic_stat_company_submit process is $MAX _sync_process"Current_sync_num= ' Ps-ef|grep $python _name | Wc-l |grep-v grep ' current_sync_num=$[

Linux command----Shell

Shell: The command interpreter executes the corresponding command according to the command entered.See which shells are under the current system:Cat/etc/shellsView the shell that is currently in use by the systemEcho $SHELLCommon shell/bin/sh "has

Linux5.4 Shell special symbols and piping related commands

Special Compliance 1. * Any of the characters 2. ? Any one character 3. # comment Character 4. \ de-semantic character 5. | Pipe character 6. The $ variable prefix, which represents the row bit 7. ; Multi-line command line input, split with

Linux and Shell Learning

sudo spctl--master-disable open application from any source when installed;sudo lsof-i:9000;sodu kill-9 pid; View port occupancy and kill process;The Rmic compiler generates stub classes and skeleton classes;/home Install software Boot of the

Use the SED command in the shell to replace/\/

SED command Related:Https://www.cnblogs.com/ggjucheng/archive/2013/01/13/2856901.htmlHttps://www.cnblogs.com/DragonFire/p/6600121.htmlHere we have to do the function is:Enter a directory "/data/data8"Transform it to "\/data\/data8" in the shell

What does "-e,-d,-f" mean in a shell under Linux?

File expression-e filename true if filename exists-d filename If filename is a directory, true-F filename True if filename is a regular file-L filename True if filename is a symbolic link-r filename If filename is readable, true-W filename if

Initial knowledge of Shell programming

I. Basic introduction to Shell programming 1.1shell programmingThe shell is an interface that the user interacts with the kernel, and the most popular shell is now called the Bash shellThe shell is also a programming language interpreted

Keywords in the shell intercept file

1.Linux Shell intercepts the first 8 bits of a character variableThere are several ways to implement this: Expr substr "$a" 1 8 echo $a |awk ' {print substr (, 1,8)} ' Echo $a |cut-c1-8 echo $ Expr $a: ' \ (. \ \). echo $

UNIX Shell Basics Summary (ii)

1. The relationship between Vim,vi and exVim does not need to install, VI for ex "Visual Mode", Vim is the advanced version of VI;2. Unix Shell shortcut keysctrl+a/e position the cursor to the head/tail of the commandctrl+u/k ctrl+y Paste ctrl+u/k

CentOS 7.4 Shell does not display current user and path issues

The steps are as follows: Vim ~/.bash_profile (no tube. Bash_profile This file has several, own new one is also possible) at the end add Export ps1= ' [\[email protected]\h \w]\$ ' Then execute the source ~/.bash_profile so the shell can display the

Shell directive (i)

Ubuntu Desktop window into the Shell window: Ctrl + ALT + F2~f6; Exit Shell window: Ctrl + ALT + F7; Enter UI Command window from UI, Ctrl + Alt +t Shell Instruction Basic Format -command name [options] -For example: detailed listing of all

Shell Script Learning Summary----sed+grep+awk+ Regular

Shell Script Learning Summary----sed+grep+awk+ Regular================================================================================First part SED================================================================================I. INTRODUCTION of

Introduction to Shell Array usage

Introduction to ArraysBash provides only one-dimensional arrays, and does not qualify the size of the array. Similar to the C language, the subscript of an array element is numbered starting with 0. Gets the elements in the array to take advantage

Shell (awk) array use case

1. Take the IP address of the ifconfig eth0[Email protected] ~]$ ifconfig eth0Eth0 Link encap:ethernet HWaddr 00:0c:29:68:47:71inet addr:192.168.48.144 bcast:192.168.48.255 mask:255.255.255.0Inet6 ADDR:FE80::20C:29FF:FE68:4771/64 Scope:linkUp

Total Pages: 541 1 .... 292 293 294 295 296 .... 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.