See someone using Dropbox backup site data, so today also tried, remember a python script, this is a bash script, using the Dropbox API to upload the download, very convenient, the script address is dropbox-uploader/ Dropbox_uploader.sh at Master
These eight suggestions derive from the experience and lessons learned from key writers who have been writing shell scripts for several years. In fact, began to write more than these several, and then pondered repeatedly, remove a few insignificant,
This is also a document comparison command, and mastering will save you a lot of work. Do you remember the comm order? Diff is more complex than he is, easy to use, not only to compare files, but also to compare directories. When a file has multiple
Environment variable Path:
[Root@localhost ~]# set//check to see local and global Variables 2 kinds
[Root@localhost ~]# env//View the system's Global environment variables
[Root@localhost ~]# echo $PATH//View system environment variable path
The true intellect is the ambition of fortitude.Today did not learn how many things, until the afternoon in the reading of other people's article when saw the key words of phpstudy0day, curiosity to check. In fact, this hole for some time, and then
0. IntroductionWhen writing a program, you often have to handle command-line arguments, and this article describes the command-line processing under bash.Options and Parameters:As the next command line:./test.sh-f Config.conf-v--prefix=/homeWe
(1) The idea of modifying dynamic IP to static IP① back up the Ifcfg-eth0 file before modifying IP② Enter the NIC configuration directory/etc/sysconfig/network-scripts/ifcfg-eth0③ modifying Bootproto=static④ modifying Onboot=yes⑤ Configuring a
#!/bin/shPs-fe|grep processstring |grep-v grepIf [$?-ne 0]Thenecho "START process ..."Elseecho "Runing ..."Fi#####Processstring represents a process feature string that can be queried for a unique process's characteristic string0 indicates the
If condition judgment and if True and false judgment
Directory:1. Correct wording2. Wrong wording3. Summary
First, the correct wordingWhen writing shell scripts, to simplify the line numbers and structure of the code, it is common to
Requirements:SSH remotely modifies the file, the variable is taken from the file, and the single and double quotes in the shell script that are inserted into the remote server's file are the same as the delimiter of the string, not the delimiter of
1.ShellThe Shell is the user interface of the Linux system and provides an interface for users to interact with the kernel. It receives the command entered by the user and feeds it into the kernel to execute .The shell is also known as the LINUX
before writing an article mainly introduces the construction of Zabbix use http://msiyuetian.blog.51cto.com/8637744/1705396This article mainly introduces the script implementation of Zabbix custom monitoring network card trafficPre-preparation
FTP is a common application for accessing files, and it is also used for daily backups. This cyclical effort will undoubtedly need to be done through automated scripting. This system is CentOS7This experiment requires you to do the following:1.
Do monitoring and backup up to1. What is a shell script?It's a scripting language, not a programming language.You can use some logical judgments, loops, and other syntaxYou can customize the sub-functionis a collection of system commandsShell
Break in a Linux script continue exit returnBreakEnd and Exit loopsContinueThe following code is not executed in the loop and continue into the next round loopExitExit the script,Always bring an integer to the system, such as Exit 0ReturnReturning
This article provides an improved version of Mac OS X RAM disk (memory disk) creation program and practical instructions.ConcernsMac Thunder Download ioPS is too high, may be not using the cache, which causes the disk squeak, so worry about the disk
1. Introduction to ArraysUsually define a=1;b=2;c=3, the variables are many, and then a definition of a laborious.Simply put, an array is a collection of elements of the data type arranged in a certain order.An array is a finite element variable or
Due to work needs, it took some time to study the two built-in special commands of eval and exec. Because not many are used, it is a bit obscure ..
1. Eval
This command is a built-in command in bashshell, which is a little more difficult than other
1. shell scripts are case sensitive2. Special Unix characters: (; $? & * () [] ''+ Escape ()3. Shell Comments start #4. Function DefinitionFunction fuction_name (){Command to execute}Function_name is directly used for calling.5. Control Structure1)
I. wildcard characters
* Represents any character ranging from 0 to infinite.
Example: Find the file name starting with cron under/etc/
[Root @ instructor Desktop] # ls/etc/cron *
/Etc/cron. deny/etc/crontab
/Etc/cron. d:
0 hourly raid-check
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.