ADB shell am Use this command to start activity, services, send broadcast, etc. from the cmd console:1C:\users\administrator>adb shell am2 usage:am [subcommand] [options]3 4Start an activity:am start [-d] [-W] 5-d:enable Debugging6-W:wait forlaunch
Source: (Linux Shell) Chapter One--Small trial sledgehammer (i.)Starting today, let's study the book "Linux Shell Scripting Raiders".1.1 IntroductionA shell script is usually a text file that starts with #!, as follows:#!/bin/bashThere are two ways
The second of Shell programming learningFirst, Bash's condition testTest method, or test writing:Test EXPR[EXPR][[EXPR]]For example: Test whether the variable user_name is rootTest $User _name= "root"[$User _name = = "Root"][[$User _name = =
1. FindFind Pathname-options [-print-exec-ok]Let's take a look at the parameters of the command:Pathname the directory path found by the Find command. For example, use. To represent the current directory, and/to represent the system root
Shell remote execution: It's often necessary to execute some shell commands remotely to other nodes, and if you ssh to each host again, it's a hassle, so you can have a centralized management approach. Describes how the two shell commands are
1. wscript. shell (Windows Script Host Runtime Library) is an object corresponding to c: \ windows \ system32 \ wshom. OCX, wscript. shell is a component used by the server system. Shell is the meaning of "shell". This object can perform common
There are the following texts:
{"result":"success","data":[{"ip":"60.18.151.27"},{"ip":"175.22.2.148"},{"ip":"221.204.202.40"},{"ip":"113.107.250.17"},{"ip":"119.97.146.13"},{"ip":"113.56.106.20"},{"ip":"218.60.5.144"},{"ip":"218.58.225.40"},{"ip":"
#!/bin/bash## Judging the element is a file or a folderif [ $# -lt 1 ];then echo "ERROE!! Usage: ckfile.sh ARGS1 [ARGS2...]" exit 4fifor i in `seq 1 $#`doif [ -f $1 ];then echo $1 is a commom fileelif [ -d $1 ];then echo $1 is a directoryelse ec
Recently, in the process of sorting out bash knowledge, I had the honor to read the man bash document. For a while, I was just like a hacker, and many places I didn't understand were suddenly open-minded. Now I want to share one of them, at the same
The columns in the text line are broken:
Awk 'in in {srand ()} {for (I = 1; I
The lines in the text line are broken down:
Awk 'in in {srand ()} {B [rand () Nr] = $0} end {for (X in B) print B [x]} 'Data
Shuf-n1000 data
Use a.txtas the patternto
Overview
Appendtofile
Cat
Chgrp
Chmod
Chown
Copyfromlocal
Copytolocal
Count
CP
Du
DUS
Expunge
Get
Getfacl
Getmerge
Ls
LSR
Mkdir
Movefromlocal
Movetolocal
MV
Put
Rm
RMR
Setfacl
Setrep
Stat
Tail
Test
Text
Touchz
Overview
[From] http://blog.chinaunix.net/uid-168249-id-2860686.html
Reference: 1. system environment variables after a user logs on to the system:$ Home user's own directory$ Path: the directory to be searched during Command Execution$ TZ Time Zone$
1. first introduce the usage of Alias (alias)
Alias LA = 'LS-a' alias B = 'CD... 'and so on
Alias is a good thing. It can save a lot of time when using shell.
2. But one day I found that the if statement cannot be used when executing the shell
I. First, let's look at the following in linux:
Copy codeThe Code is as follows :#! /Bin/bash
Cd/ftp/
CURRENTDATE = 'date + % Y % m % d'
YESTERDAY = 'date-d yesterday + % Y % m % d'
THREEDAYAGO = 'date-d' 3 days ago '+ % Y % m % d'
# Echo $
Use the here document
Copy codeThe Code is as follows :#! /Bin/sh
Ftp-ivn 210.29.28.124 User yun yun2011
LCD/home/veyun
Cd/home/veyun/yhb
Get v
Bye
EOF
Explanation:
-I: Disable interaction prompts during multi-file transmission, so there
THE sh file cannot be modified in windows.Because most people use windows as the operating system and the visual interface of windows is more user-friendly, when modifying a linux sh file, edit it with editplus to facilitate pulling it to the window,
An example of a Shell with parameters and a shell parameter
#! /Bin/bash # Program: # LZSH server log filter # History: #2014/07/01 Kom First release #2014/07/03 Kom Remote and multi-param support # Set PATHPATH =/bin:/sbin:
1. first introduce the usage of alias (alias)
Alias la = 'LS-a' alias B = 'CD... 'and so on
Alias is a good thing. It can save a lot of time when using shell.
2. But one day I found that the if statement cannot be used when executing the shell
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