Before entering the ADB shell into the Linux shell environment in CMD, you need to open the Android emulator (this article is for the emulator, not the real machine). If the emulator is started and the Error:device not found error message appears
Morning log in the server compiled to run the service-side program, learned that after the command after the character "&", quit the shell, run the command can continue to run. Puzzled the reason, and to search the following online, understand the
The cue color in the shell terminal is determined by the PS1 in the environment variable, so change the PS1.1> Temporary changes[[Email protected]~]# echo $PS 1 [\[email protected]\h\w]\$ [email protected]~]# ps1= ' \[\033[31m\][\[email prote
First, what is the bean Shell
BeanShell is a scripting language that conforms fully to the Java syntax specification and has its own syntax and methods.
BeanShell is a loosely typed scripting language (this is similar to JS);
The shell script obtains a method for each CPU usage of the host.#!/bin/Bashinterval=3Cpu_num=`Cat/proc/Stat|grepcpu[0-9] -C ' Start_idle=() Start_total=() cpu_rate=() Cpu_rate_file=./`hostname' _cpu_rate.csvif[-F ${cpu_rate_file}]; Then
The following string is known to be the result of the random number variable md5sum|cut-c 1-8 intercept, please crack these strings corresponding to the md5sum before the random corresponding number?[Email protected] md5]#CatZifuchuang2102929900205d1
| Introduction If you are using GIT with the command line, you can use the git status command to query which branch you are working on now, but it's hard to forget what branch you're under, so you have a mug with a wrong operation. It is no doubt
1. string Judgments
STR1 = str2
True when two strings have the same content, length
Str1! = str2
True when strings str1 and str2 are unequal
-N str1
True when the length of a string is
In some complex Linux maintenance work, a lot of repetitive inputs and interactions are time-consuming and error-prone. Scripts are needed.The benefits of scripting: batch processing, automated completion of maintenance, reduction of the burden
1. Load the configuration file sequence during the Linux login process:/ETC/PROFILE→/ETC/PROFILE.D/*.SH→~/.BASH_PROFILE→~/.BASHRC→[/ETC/BASHRC]Cat ~/.BASHRC #查看 ~/.BASHRC#. BASHRC# User specific aliases and functions# Source Global Definitionsif [-F/
#! /bin/bashTwo ways to run the shellChange Permissions chmod u+xSpecifying the interpreter at run timeShell variablesVariable typeaccessing variables$, ${}Read-only variablesReadOnlyDelete a variableUnset cancels a variable, but cannot cancel a
Select loopMainly used to create menus, the menu items arranged numerically are displayed on the standard output, and the PS3 indicator is displayed, waiting for the user to enter a number from the user input menu list, execute the corresponding
I. Description of the Catalogue1.1 Bin General user, executable system built-in commands1.2 Sbin system administrator, executable system built-in commands1.3 Boot boot file directory, start the relevant files are saved in this1.4 Dev Device
Reproduced from--no flowering tree: http://blog.csdn.net/mycwq/article/details/16858805The finishing is very complete, so brought over,The Erlang shell is a tool that uses commands and Erlang interaction in command-line mode. The Erlang shell is
Before we write, let's figure out why we need to learn the shell and learn to be purposeful.The shell is simple, flexible, and efficient, and is especially suitable for dealing with some minor system management issues.Shell automates management,
function definition Format:[function][()]{ action; [returnint;] }Cases:#!/bin/bash Funwithreturn () { Span class= "PLN" > echo echo "Enter first number : " read anum echo " Enter a second number: " read anothernum echo " two numbers are $aNum
Syntax for While loop:
While condition testDoCommand AreaDone
Example:#!/bin/bashdeclare-i i=1declare-i Sum=0while ((iUse while to read file contentsWhile loop, the classic usage is to go with the switch input, read the contents of the
Functions: functionProgram programming: Code reuse;Modular programming;Structured programming;Consider the code of an independent function as a whole, and take a name for it; a named code snippet, which is a function;Definition and use of
I. The history of the shellThe role of the shell is to explain the execution of the user's commands, the user enters a command, the shell interprets the execution of a bar, which is called Interactive. The user also has a way of executing a command
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