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
1. What is a shell?The shell is the user interface of the system and provides an interface for users to interoperate with the kernel. It receives the command entered by the user and feeds it into the kernel to execute.In fact, the shell is a command
1. The priority ranges from-20 to 19. The higher the priority, the lower the priority.
2. Nice can specify a modest (priority) Increment value for the process when creating a process, the priority value of a process is the sum of the shell
Exec also allows the script to be executed in the same process, but the original process is ended.
Script content:
Root @ James-desktop:/opt/Qt-everywhere/Marvell/APP/applications/factory-Roast # Cat 1.sh#! /Bin/shA = BEcho "PID for 1.sh:
0. Introduction
WriteProgramCommand line parameters are often processed. This article describes the command line Processing Method in bash.
Options and parameters:
For example, the following command line:./Test. Sh-F config.
Category:ProgramWshshell objectProgid wscript. ShellFile Name wshom. ocxCLSID F935DC22-1CF0-11d0-ADB9-00C04FD58A0BIID F935DC21-1CF0-11d0-ADB9-00C04FD58A0B
The following table describes the properties related to the wshshell object.Attribute
Generally, the ADB shell command is used during development. In my personal development, apart from some ADB commands, in fact, the basic commands of Linux are also very important, especially during terminal debugging. The development environment is
From: http://www.jb51.net/article/34323.htm
Note: The subscript of the array in Shell starts from 0 by default.
1. Place the string in an array to obtain its length.
Copy the Code as follows:#! /Bin/bashSTR = "a B -- n d"Array = ($ Str)Length =$ {#
If statement test condition. After the test condition returns true (0) or false (1), you can execute a series of statements accordingly. If statement structure is very useful for error checks. The format is:If condition 1Then command 1Elif condition
Cause: There is no sqlite3 file in the/system/xbin folder on the mobile phone.
Solution: Generally there are some in the simulator, so the task is to drag sqlite3 from the simulator to the mobile phone device.
1. Mount the mobile phone first to make/
Shell programming notes (4)-text filtering Author: sunwill_chen published on: attribute: Original Copy Link
1. Regular Expression(1) Regular Expressions are generally used to describe the special usage of the text mode. common characters
Shell can represent different hexadecimal data without calling the 3rd-party command. The following methods are summarized here. The default value of a shell script is a 10-digit number, which can represent other numeric values unless the number
When deploying a project on Linux, we often use a shell to start the program, or even regularly call the Java program through a crontab scheduled task. However, a strange problem is that, for example, I wrote the following shell script:
#! /Bin/sh
This problem took me two days.
Currently, there is only one solution.
After xenocode winform program, if you want to implement one-click automatic update (that is, you do not need to click it), it is quite difficult.
The reason is that xenocode
This is the first phase of the shell Learning Series and will be constantly updated...
Specific Learning books: Unix shell programming (Third edition)
This section describes some tools that are frequently used in shell programming.
1. Shell tool --
1. display all Android platforms in the system:
Android list targets
2. Display All AVD (simulators) in the system ):
Android list avd
3. Create an AVD (simulator ):
Android create avd -- name -- target Platform ID
4. Start the
Excerpted from: ABS_Guide translator Yang chunmin Huang Yi
When will Shell scripts not be used?
Resource-intensive tasks, especially when efficiency needs to be considered (such as sorting and hash)
Mathematical operations that require processing
This article introduces the array-related knowledge in linxu shell and provides many examples for reference, including array copying, calculation, deletion, and replacement, it is a rare article to learn shell arrays.
Array declaration:
1) array
Test File OPERATOR:
-B file: if the file is a special file, it is true.
-C file: if the file is a special character file, it is true.
-D file: if the file is a directory, it is true.
-E file: true if the file exists
-F file: if the file is a normal
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