ADB shell PS can be used to view memoryADB Shell PS | Find "Launcher"USER PID PPID vsize RSS Wchan PC NAMEapp_47 1274 1071 121628 30352 ffffffff afe0dc24 S com.motorola.launcherVsize is a virtual memoryRSS is physical memory.Android Medium " PS "The
Learn from this section the main control statements, loop statementsComments, Shell Multiline commentsThe Shell line comment is simple, just add # at the beginning of each line, but he does not provide a special multi-line comment method, so we use
3. Variable DeclarationReadOnly Read OnlyExport Modify or print environment variablesexport-p Show Current EnvironmentNote : It is important to note that there must be no space before and after the assignment. # Echo Control character color [email
Record a shell script case that includes some syntax for the shell (function definition, expression operation, if, case ...). )#!/bin/sh#获取当前时间run_time= ' Date +%h%m%s '#取当前日期前一天Get_ydate (){#设置当前年月日today= ' Date +%y%m%d 'Month= ' Date +%m 'day= '
Shell processing strings and {} operations1. Get the length of a variableThere are about 4 ways to get the length of a string: (in the case of Hello World)
Passwc -L $ echo "hello world" | wc -L 11
Passexpr length string$ expr length
& placed after the startup parameter to set this process as a background processBy default, the process is the foreground process, then the shell is occupied, we can not do other operations, for those who do not interact with the process, many times,
Sch Help Shell Scripting Encryption Geneva I. Span style= "Word-wrap:break-word; Font-weight:normal; font-size:7pt; Font-family: ' Times New Roman ' "> introduction SHC (shell script compiler) shell script compiler. by SHC Compiled
First shell script
Program#!/bin/sh #第一行统一这样写echo ‘abc‘ #输出abc
Run (because the directory is incorrect)[email protected]:~$ test.shtest.sh: command not found
Programme I[email protected]:~$ sh test.shabc
Scenario two (
Experimental environment: The company intranet 2 machines, one is my own notebook (machine name Nb11), one is the company's server (machine name ws100), are Win7 system(Found a strange problem, shell access to the command, Windows, only Werl.exe
1 $1,$2,$3 respectively represents the first, second, and third parameter of the input.2 If you want to add then elif endif end to write fi3 do end to correspond to the done shell there are brackets in the notation such as: for[]4 [email protected]
Resources: Linux shell script Raiders author Sarath Lakshman People's post and telecommunications pressShell: Reads the contents of each line of the file and outputs the notation 1Purpose: Read the passwd file, get the user name and its default
Tag:ar use sp file div art bs ad ef The call file system (FS) shell command should use the form Bin/hadoop FS. All FS shell commands use the URI path as the parameter. The URI format is Scheme://authority/path. The scheme for
grep command SyntaxThe grep command uses an option , a pattern to match , and a file to search , and its syntax is as follows:grep [Options] PATTERN [FILES]If no file name is provided, the grep command searches for standard input.
Options
The Hill sort (Shell sort) is a kind of insertion sort, which is an improvement on the direct insertion sorting algorithm. This method is also known as narrowing the incremental sort, because of the DL. The shell was named after it was introduced in
Shell programming cutCut refers to the unit of action in the file. Based on the conditions you set, part of the content is cut and printed out. Output to standard output, not saved to any file-B Range: determined by byte range-c range: determined by
Shell programming cut, shellcutCut refers to the unit of action in the file. Based on the conditions you set, part of the content is cut and printed out. Output to standard output, not saved to any file-B Range: determined by byte range-c range:
Restart tomcat shell and tomcat shell
#! /Bin/bash #1. Determine whether the service is available. 2. restart tomcat if the service is unavailable. #*/30 *****/home/wsm/restart. sh>/home/wsm/restart. log # Stop tomcatfunction killTomcat () {pid =
Linux Command -- bash shell configuration, linuxbash
I. shell Type
From the perspective of user login, shell types include:
1. logon shell: (read environment configuration)
Normally log on through a terminal:
Su-USERNAME
Su-l USERNAME
2. Non-Logon
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