In Android development, this command can often be used adb shell dumpsys to dump the state information of the system runtime, for example, to view the memory usage information of an applicationadb shell dumpsys meminfo
Requirement-driven Linux Shell Programming
Requirement-driven Linux Shell programmingtable of Contents
1. Where can I find the basic Material about Linux Shell programming?
2. How to time a function/program (Get the execution time of a
1. At the command terminal to get root user rightsIn the terminal, enter:sudo passwd rootEnter new UNIX Password: (enter your password here)Retype new UNIX Password: (Determine the password you entered)Passwd:password updated successfullyLater, if
The above summary of the shell, all reproduced to the following blog:Linux Shell Common Skills (i)Http://www.cnblogs.com/stephen-liu74/archive/2011/11/10/2240461.htmlI. Special documents:/dev/null and/dev/ttyTwo. Simple command trackingThree.
Shell Programming for Linux1. What is a shell?When a user logs on to a Linux system, the system initialization program Init runs a program called a shell (shell) for each user.The shell is a command-line interpreter that provides the user with an
1. man helps explain commands you are familiar with or unfamiliar withEg:man ls to view LS-related usageNote: Press the Q key or CTRL + C to exit, under Linux you can use CTRL + C to terminate the current program run.2.ls to view the directory or
1.shell variablesLocal variables:A=1 (no spaces on both sides of the equal sign)Read-only variables:ReadOnly variable name = variable value (cannot be changed during use)Declaring variables:Linux assigns a value to a variable by default as a
Shell text filtering (grep) Classification: Linux Shell script LearningRead by 588Comment (0)FavoritesReport Shell Regular Expression extension tool Storage Grep (Global Regular Expression version) allows Pattern searches for text files. If the
In the shell command terminal, CTRL + N is equivalent to the downward direction key, and CTRL + P is equivalent to the upward direction key.You can use them or the arrow keys in the Command terminal to quickly find historical commands. This is also
BASH Shell has an extglob option. After the shell is enabled, five pattern matching operators can be identified to facilitate file matching.
Method:
Run shopt command: shopt-s extglob
Close method: shopt-u extglob
When this feature is enabled,
ShellList the 10 most frequently used shellsHistory | awk '{A [$2] ++} end {for (I in a) {print a [I] "" I}' | sort-Rn | HEADHistory | awk '{A [$4] ++} end {for (I in a) {print a [$ I] & quot; i} '| sort-Rn | HEADGrep-V "#". bash_history | awk '{++
Tag: Process Using Div string shell script$0: Script Name $1-$9: location parameter #2-#9 $ {10}: location parameter #10 $ #: Number of location parameters "$ *": all location parameters (as a single string) "[email protected]": All location
Why shell script classification: Linux Shell script learning 78 people read comments (0) the add-to-favorites shell script task job s h e l script saves a lot of time in Processing Automatic loops or large tasks and is powerful. If you have a
Shell text filtering (Regular Expression) classification: Linux Shell script learning 213 people read comments (0) collect reports
When extracting or filtering text from a file or command output, you can use a regular expression (r e), which is a
I. Introduction
Hbase is a distributed, column-oriented open-source database. It originated from Google's paper bigtable: a distributed storage system for structured data. Hbase is an open-source implementation of Google bigtable. It uses hadoop
When running commands in Linux Shell, each process is associated with three open files and uses file descriptors to reference these files. Because the file descriptor is not easy to remember, shell also provides the corresponding file name.
Standard
This small program is simple, but it is the first shell script written by the novice. It has many factors to consider, but some errors are not handled ,,
#! /Bin/bash# Auth: dhh
Clear
Addr =/etc/yum. repos. d
Mkdir $ addr/bf>/dev/null 2> & 1
Mv $
[Sed introduction:]
Sed is a good file processing tool. It is a pipeline command and can be used to add, select, replace, or delete data rows. Sed command line format: sed [-nefri] 'range command' file such as: sed '2d 'aaa.txt # Delete the second
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