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 echo Command

Shell echo CommandThe echo command of the Shell is similar to the echo command of PHP, and is used for the output of strings. Command format:StringYou can use echo to achieve more complex output format control.1. Display Normal string:" It is a test

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

[Turn]-nohup-real shell background run

& Method:Unix/linux generally want to let a program run in the background, many use & at the end of the program to let the program run automatically.For example we want to run MySQL in the background:/usr/local/mysql/bin/mysqld_safe--user=mysql

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=$[

Shell Synthesis Example

Shell Synthesis Example (i)To back up the system configuration file:1, scheduled task service configuration file/var/spool/cron/root2. Boot from boot profile/etc/rc.local3, the Daily script directory4, Firewall iptables configuration

Linux Shell Rookie Learning notes ....

20171123 Linux Shell Basics Learning Notes1. The beginning of the shellGenerally #!/bin/bash through the #! To uniquely specify the shell path to useThe other # all represents comments.2. Shell variablesDefine variables directly with variablename=

How the date loops in the shell

First Kind# 这里的例子以周为循环!/bin/bashbegin_date="20160907"end_date="20170226"while [ "$begin_date" -le "$end_date" ];do year=${begin_date:0:4} week_of_year=$(date -d "$begin_date" +%W) echo $year, $week_of_year begin_date=$(date -d

Shell scripting exercises for Linux

A. Triangle Square exercise1. Print triangles, method one, regular expressions650) this.width=650; "src=" Https://s3.51cto.com/oss/201711/21/ea1ad50480c4e888094441dee06b962f.png "style=" float: none; "Title=" screenshot from 2017-11-21 21-34-44.png "

Shell variables, environment variable configuration files, pipe breaks

ENV View variable set also view variable content more powerful than env[[email protected] ~]# echo $HOSTNAME See the name of the variableBinbinlinux[Email protected] ~]# a=1;b=2[[email protected] ~]# echo $a $b can output a value of two variables0

Shell introduction, history commands, command completion and aliases, wildcard characters, input and output redirection

Shell IntroductionThe shell is the intermediate medium used when the system interacts with the computer hardware, and it is just a tool of the system. In fact, there is a layer of stuff between the shell and the computer hardware-the system

(turn) Develop monitoring Linux memory Shell scripts

Original: http://blog.csdn.net/timchen525/article/details/76474017Problem Scenario:Develop the shell script to determine the size of the system's remaining memory, if less than 100MB, the message to the system administrator, and the script into the

Shell exercises-Bulk Sync code

The requirements background is:A business, with 3 servers (A,B,C) Doing load balancing, because the scale is too small to use a professional automated maintenance tool at this time. When there is a new requirement, the development colleague changes

Shell Script Programming Summary

Shell Script Programming Summary (i)Text Processing tool awkAWK is a column-based text Processing tool. It's powerful and has a wide range of applications in shell programming. Here's an example of how awk's common operations are explained.To better

Zabbix installing exception issues through shell scripting

htxk-106 host information phenomenon is as follows:by Zabbix_get commandZabbix_get [7189]: Check access Restrictions in Zabbix agent configurationWorkaround: By viewing Zabbix related files, found in the Usr/local/sbin directory Zabbix_agend file,

Shell Scripting 1

determine whether a variable is an integer through expr[email protected] scripts]# cat judge.sh#!/bin/bash############################################################### File Name:judge.sh# version:v1.0# Author:rain Jin# Blog site:http://www.cnblogs.

Linux Shell (. /path/filename)

In the/etc/profile file, there is a script:if Then /etc/bash.bashrcfi What does "dot + space + file" mean here?1, if we want to execute a file, but this file is not executable, at this time we want to use chmod u+x file_name to make the file

Shell Programming (ii) basic knowledge of--shell and common commands

The basics of the shellFirst, Bash has the following features:1. Record command history2. Command and file name completion3. AliasesAlias rm= ' Rm-i '4. Wildcard characters* 0 or more characters?? match one character5 Input and output

Qualified Linux OPS personnel must be 30 shell programming surface questions and explanations-11

Enterprise Face question 11:The shell scripts were developed to compare 2 integer sizes in the same way as script arguments and read reads. Alerts users to compare results in a screen-out manner.Note: Altogether is the development of 2 scripts. When

Bash Shell Relationship

The bash and shell relationships of LinuxShell Popular Understanding: Translate user-entered commands to the operating system.The shell is an interactive command interpreter. The shell is independent of the operating system, which gives the user the

Total Pages: 541 1 .... 317 318 319 320 321 .... 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.