Documenting the shell activity has many benefits, such as the need to monitor user behavior, backtracking before the system crashes. The key tool to implement this function is quite simple, it is COM interface ishellexecutehook. After writing a COM
1. Display all Android platforms in the system:
Android list targets
2. Display all AVD (simulators) in the system:
Android List AvD
3. Create AVD (Simulator):
Android Create AVD--name name--target platform number
4. Start
This article mainly introduces the shell script to determine whether the IP address in an IP segment code sharing, this article directly to the implementation code, the need for friends can refer to the
?
1 2 3 4 5 6 7 8 9 10 11 12 13 1
The waste CPU opens the shell to open the process.
1. Preparation work
2, this step with a knife when you must be careful to be patient, do not scratch the CPU cover and the following section, do not be afraid of no place to row, the
CSH Example Reference:
Copy Code code as follows:
#!/bin/csh-vx
#csh-VX Show the command before running to help debug
#just to check syntax#csh-N $
#argvif ($ #argv echo "Sorry, but you entered too few parameters"echo "Usage: $
Verifying IP address legality using the shell
How to use:
Copy Code code as follows:
[Root@yang python]# bash check_ip.sh IP address
Execution Result: The return value of 0 checksum is valid, not 0 illegal.
Shell code:
Copy
One, variable operation
A. variable display, printSyntax: Echo $varB. Variable settingsSyntax: Var=value
Setting rules for variables:1. Variable ends cannot be directly connected to spaces2. Variable names can only be letters and numbers, but the
Recently saw a few good small examples in the forum, for learning awk is still helpful, here in detail
A. A LEFT join query in a similar database
Copy Code code as follows:
[Root@krlcgcms01 mytest]# cat A.txt//a.txt
aaa
222 BBB
The Shell Case statement is a multiple-selection statement. You can use a case statement to match a value with a pattern, and if the match succeeds, execute the matching command. The case statement is formatted as follows:
Copy Code code as
This paper briefly introduces the method of Gearman using MySQL, and some problems caused by it, the detailed analysis is as follows:
First, Gearman create a MySQL persistence queue in the following ways:
1. Log into the MySQL command line and run:
This section mainly discusses the mathematical related shell script programming.
Addition operations
Create a new file "addition.sh", enter the following and give it executable permissions.
Copy Code code as follows:
#!/bin/bash
Because Nginx is a high-performance http and reverse proxy server. Nginx has a strong advantage in reverse proxy, rewrite rules, stability, static file processing, memory consumption and so on. Therefore, most of the Web services on the company's
This article mainly introduces the basic syntax of if and common judgment usage in the shell, this article explains the basic syntax of IF, the judgment of the string, the judgment of the number, the judgment of the file attribute, the logic
IfconfigThis command is consistent with the "ipconfig" function of windows for displaying details such as network interfaces, subnet masks, and so on.Ifconfig the left column is the network interface name, which occupies 10 bytes, and several
Turn from:Linux shell ${} simple usageFor the sake of completeness, I'll use some examples here to illustrate some of the supernatural powers of ${}:Suppose we define a variable as:File=/dir1/dir2/dir3/my.file.txtWe can replace each other with ${}
First, the meaning of variable $#,[email protected],$0,$1,$2,$*,$$,$ in Linux:Script tests can be used to differentiate the specific roles and usages of these variables.The script is as follows:# vim Variable#!/bin/shecho "number:$#" echo "Scname:$0"
RHEL5.4 OpenSSH upgrade to OPENSSH_7.4P1 version-shell processingCustomer 30 RHEL5.4 System OpenSSH needs to be upgraded to OPENSSH_7.4P1 version#cat/etc/redhat-releaseRed Hat Enterprise Linux Server Release 5.4 (Tikanga)# Uname-r2.6.18-164.el5pae#
The printf command is used to format the output and is an enhanced version of the echo command. It is a finite variant of the C-language printf () library function, and is somewhat different in syntax.Note: printf is defined by the POSIX standard,
1. The kernel is placed in the computer's memory from post, until the computer shuts down, the application is placed on the computer's hard disk, and only calls into memory execution when needed.2.shell is the application, which is the bridge
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