One, view memoryAndroid program memory is divided into 2 parts: native and Dalvik,dalvik are the Java heaps we normally call, the objects we create are assigned here, and bitmap are allocated directly on native, and the limit for memory is native+
On the BBS saw the Shell 13 asked the post, because the comparison is far away, afraid later can not find, put the notes over,Original address:Shell 13 AskHttp://bbs.chinaunix.net/thread-2033675-1-1.htmlPost the notes I made:, why a Shell user
$CatOpenstack_install.SH #!/usr/bin/EnvBashfunctionUsage {Echo "usage:$0 [optaion] ..." Echo "Master Install OpenStack Master in the This system." Echo "COMPUTE install OpenStack compute in the This system."Exit}functionprocess_option { Case " $"
1. FunctionsShell functions, which are used to customize a segment of a program. To simplify the code. Grammar:Funtion fname () { //do something}The shell is top-down, executed from the left and right. So the definition of the function needs to
Not long ago, once searched a blog is to read the configuration file, http://www.cnblogs.com/bo083/archive/2012/11/19/2777076.html, used to now, feel very convenient, thank the author.Now, a web interface is required to allow the user to modify a
File descriptor
STDIN: standard input, receive input from mouse, keyboard or other input device, file descriptor is 1
Stduot: Output All normal output results, file descriptor is 2
STDERR: Output All error messages, file descriptor
Similar to other programming languages, the shell supports A for loop.The general format for A for loop is: for inch List Do command1 command2 ... CommandN DoneA list is a sequence of values (numbers, strings, and so on), each separated
The following lists the common methods of $
$n represents the arguments passed to the script, representing the first one, and the second one ... $# represents the number of arguments passed to the script $0
14/12/17 19:18:53ERROR shell:failed to locate the winutils binary in the Hadoop binary pathjava.io.IOException:Could not locate exec UtableNULL\bin\winutils.exe in the Hadoop binaries. At Org.apache.hadoop.util.Shell.getQualifiedBinPath (Shell.java:3
By default, Unix Commands obtain input from the standard input device (stdin) and output the result to the standard output device (stdout) for display. Generally, the standard input device is the keyboard, and the standard output device is the
#! /bin/bash################################################################################# Zabbix extensions (C) 2011-* Joseph Bueno # Published under GNU General Public License version 2 or later.# See LICENSE.txt#--------------------------------
First, we will not introduce what shell scripts are. This blog only records every step of learning shell scripts.
First, we will introduce the basic shell rules:
The shell script is not a complex program. It is explained by line. The first line of
Simple shell script exercises
Simple Example
Conversation Script: The variable content is determined by the user.
[[Email protected] Scripts] # vi sh02.sh #! /Bin/bash # program: # user inputs his first name and last name. program
Target
Implement recording of shell execution start time, end time, running status, error information, etc. Use the function to encapsulate log records and use scripts to call functions.Source code universal function script
Three types of commands can be used in shell scripts:
>>> Unix Commands
Although any Unix command can be used in shell scripts, some more common commands are used. These commands are usually used for file and text operations.
Common command
Yesterday, in order to Configure SNMP monitoring, the shell of several esxi 5.5 hosts was changed from disable to enable on the console. After logging on to vcenter, all hosts were warned.
The process is as follows:
Select a host with a warning
Last week, the boss pressed down the task and asked him to write a Web Crawler to crawl the data information of an industry website. Since I only use the shell programming language, other programming languages have never been involved, so I can only
Shell supports custom variables. When defining a variable, the variable name does not contain a dollar sign ($), for example:
Copy text-only new window
Variablename = "value"
variableName="value"Note that there is no space between the variable
In linux/centos shell scripts, the password is not interactively modified. In centos, the password is not modified.Today, when I wrote a shell script, I found that the user's password needs to be set and the password is set to interactive. This is
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