ADB Shell--helpDescription: More than 4.4 devices can be used to record video, without the need for root access, extremely convenient.E:\WORKSPACE\TAOPARKING\SCRIPT>ADB Shell Screenrecord--helpUsage:screenrecord [Options] Records The device ' s
MySQL table optimizer Brief:first, the analysis tablesecond, the inspection tablethird, optimize the tableiv. Table Data ImportFive, lock table operationfirst, the analysis table1.1. Command:ANALYZE [No_write_to_binlog | Local]table tbl_name [,
MySQL partition experimentBrief:I. Partitioning by partition typeII. Administrative Divisionexamples of partitions and non-partitioned tablesfirst, establish the partition to hash partition for example(1), non-linear hash partition1. Test table
The specific hbase shell commands are shown in the following table:View hbase Status: statusView versions of HBase: VersionCreating a scores table: Create ' scores ', ' Grad ', ' course 'See what tables are in the current hbase: ListView the
Ubuntu often prompt to update the kernel, update several times after the/boot directory is full, and then update the hint directory no space, this time you need to remove the old kernel, before all is uname, grep, dpkg and other commands to knock,
Writing one:#!/bin/bashWhile Read lineDoEcho $lineDone Two:#!/bin/bashCat file (file to be read) | While Read lineDoEcho $lineDoneThree:For line in ' cat file (files to be read) 'DoEcho $lineDoneThe above three kinds of writing are my excerpt from
Escape character#!/bin/Basha=tenecho"Value of A is $a \ n"Replace the escape character with the-e representation, which is not escaped by defaultCommand substitutionThe syntax for command substitution, note is the inverse quotation mark, not the
1. Shell to determine the file, whether the directory exists or has permissions2. #!/bin/sh3.4. Mypath= "/var/log/httpd/"5. myfile= "/var/log/httpd/access.log"6.7. # the-x parameter here determines whether the $mypath exists and has executable
Unlike a compiled language, shell scripting is an interpreted language.When executing such a program, The interpreter (interpreter) needs to read the source code that we wrote and convert it to the target (object), which is then run by the
wrote a script to automatically generate PDF uploads GitHub can't stand every time the same commit decides to use a script to pass the argumentSimple and easy to use bold method, more complex can refer to the following two detailed.How to pass
Replacing a row of records in a property file with a shell scriptAssume a subordinate file demo.propertiesUser.name=testuser.password=123456...............................Requirements: First, you need to replace the value values of User.Name and
1. Real-time view of the shell types used in the current process: recommendedThe code is as follows:PS | grep $$ | awk ' {print $4} '(Note: $$ indicates the shell's process number)2. The most common command to view the shell, but cannot reflect the
1.sh-x ScriptThis executes the script and displays the values of all variablesFor example, script:#!/bin/bash#a test about shiftif$#0 ]thenecho"there is no parameters"exit0fisum=0while$#-gt0 ]do $sum$1` shiftdoneecho$sumOutput:2.sh-n ScriptDo not
d211 Admin # for I in {3..254}; Do ping-c 1 192.168.1. $i &>/dev/null && echo 192.168.1. $i is alive ;d One192.168.1.5 is alive192.168.1.7 is aliveFping-a-G 192.168.5.1 192.168.5.177-s-N >lele.txt -A Show systems that is alive.- G Generate a target
I. Script structureThe script for the shell under Linux is to write a series of command sequences in a text file, and this text file can be executed. Development efficiency increases relative to the command line. So his architecture has 2 parts that
Code: Script_name parameter1 parameter2 Parameter3 ...It's easy to guess that the $ A is the shell script name (path) itself, and $ $ is the first argument, and so on .... you have to pay attention to the role of IFS, that is, if IFS is quoting,
From Shell13 asked-E: Activate the conversion of the backslash control character (refer to the following table)-e: Turn off anti-skew control character conversion (preset)-N: Cancel line end of line symbol (with the \c character under the-e
A brother in the forum to toss two variables at the same time, do not know how to toss. Later learned that you can use an arrayAll forget the shell and the array.wrote a test program. Record it. I also have an impression in the
Shell-automatically deploy the war package to tomcat#! /Bin/shCURL = $1CRootDir =/data/tomcat-usercenterShRootDir =/data/tomcat/dll# Delete old versionRm-rf $ shRootDir/usercenter-web.war *# The default war package address is the last successfully
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