01) Installationsudo add-apt-repository ppa:nilarimogard/webupd8sudo apt-get updatesudo apt-get install android-tools-adb02) Environment variablesI. Introduction of TOOLSAndroid-sdk-linux_x86/tools has a bunch of tools to use today: Android Debug
Because of the management of more than 200 Linux servers, a person engaged in the security of so many machines more tired, so after learning the shell script decisive write some common scripts to do some routine maintenance, this article OpenSSH
Recently in the Zabbix, the company has six new servers. When the Zabbix client is deployed, the baby is really angry. Grandpa's always so repetitive work is also not AH. But as a war five slag, what else can be mixed with rice? Think of last year
The character color of terminal is controlled by escape sequence, it is the system display function in text mode, and the specific language is independent, Shell,python,perl and so on can be called.The escape sequence starts with the ESC and can do
I rookie a, first contact with the Linux shell script;Shell script, the simplest function is to write a lot of instructions together, so that users can easily be able to execute multiple commands, and shell script provides arrays, loops, conditions
1. #号截取, remove the left character and leave the right character. Code: Echo ${var#*//}where Var is the variable name, #是运算符, *//indicates that the first//and all characters on the left are deleted from the left. Example:650) this.width=650; "
1.find find files that match your search criteriaFind Pathname-options [-print-exec-ok ...]--options:-perm: File lookup permission, plus number-type: File type, plus f: File D: Directory L: Symbolic link file-group: Find files belonging to group
If the expression contains special characters, the Shell will replace it. For example, using a variable in double quotes is a substitution, and an escape character is also a substitution.As an example:#!/bin/basha=10Echo-e "The universe is $a \
The operation of a numeric variable:
The numerical operation of the shell variable is mostly used in the process control of the script, in the shell environment, only a simple integer operation, does not support the fractional operation,
$ () and ' (anti-quote)In the bash shell, $ () and "(anti-quote) are used for command substitution.The so-called command substitution is similar to the variable substitution we learned in the fifth chapter, which is used to reorganize the command
1. Prepare my first shell scriptWhat is a shell script? I would simply say that the shell script is a special program in the Linux system, he works between the operating system kernel and the application, acting as a "command interpreter" role, is
Thank you for the 36,000 sectionCommon Shell Categories:
BASH: is the GNU Bourne Again Shell, which is the default shell on the GNU operating system
C Shell: The BSD version of Sun's shell
Look at where the shell is on the
1. single brackets [] ①bash's internal command, [and test is equivalent. If we don't specify the absolute path, we usually use Bash's own commands. The left bracket in the if/test structure is the command ID that calls test, and the right bracket
Scripts are best placed in/usr/local/sbin.the script executes the Sh-x script. Sh-x can view the execution process1 when using variables in a script, use the $ symbol:#!/bin/bash# #把命令赋值为变量, you need to use anti-quotesd= ' date + '%h:%m:%s 'echo
Reprint: Http://zhidao.baidu.com/link?url=th2hdLX2aijSiiOJJStShdBmfoxNQSTzKM12rFW6IqlL93uijQ7jMkK8V9fEFuuOp5Ni1VxKRapzFvCgCWozKaFile comparison Operators-e filename true if filename exists [-e/var/log/syslog]-D filename True if filename is a
Generally as long as the Linux installation of the Chinese language pack, you can use English as the default character encoding, you can also recognize Chinese characters, garbled can modify the character encoding settings,Method One: Modify the
Wildcard charactersWildcard characters can be used in place of a character. Typically, the asterisk "*" matches 0 or more characters, a question mark "?" Matches a 1 character.Use case:1. Files and directoriesWhen describing file names (or paths) in
Shell variables${#var} to calculate the length of the variable value:1. Definition of variablesVariable name = "Content assigned to Variable" (string)Variable name = ' assignment to the contents of a variable ' (string)Variable name = numeric value (
Z Shell ' s (zsh) popularity has increased in the last years. I have no moved too zsh yet, but I am going to do.Zsh is isn't installed in Linux by default, but it can be installed easilly with a package Manager:1. Check If ZSH is already installed
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