The ADB Shell AM command is available on the cmd command line via commands to start activity,boradcast,service, etc., and can be referenced in the following attachments.For example, in the CMD serial port we send the broadcast, the broadcast action
variables
Declaring variables:DECLARE attribute variable#attribute表示变量的属性, the common properties are as follows:#-I defines the variable as an integer;-a variable is declared as an array variable;-r declares the variable as a read-only
Experimental requirements:1. Write a login welcome script for root user, report the number of processes in the current host, the number of logged in users, and the disk usage of the root file system.2, write three scripts: Start,stop and status,
Today in three different ways to achieve the shell script Print 99 multiplication table, the code is as follows Method 1: Use a For loop (a.sh) #!/bin/shfor i in {1,2,3,4,5,6,7,8,9}do to J in {1,2,3,4,5,6,7,8,9} do ((product= $i * $j)) Echo-ne $i \ *
Script is an eternal topic, before DOS also have shell programming this said, for example bat file someone write good words, is also instantaneous speed to become tall on. This should take a bigger share of Linux. I saw a garden friend in the garden
1.Shell itself is a program written in C language, it is a bridge for users to use Unix/linux, most of the user's work is done through the shell. the shell is both a command language and a programming language. as a command language, it interprets
1, the general user's command prompt is the root command prompt is #2. Each command in bash is separated by semicolons or newline characters, for example$ cmd1; Cmd23, echo each call after the default will add line break, the following can be used
Shell Script Programming---judgment 1. Condition judgment Conditional judgment in Bash is divided into integer judgments, character judgments, and file judgments.
1-1 condition-judged expression: ①[expression] ( Note that the word prefix
Linux-bash types of editing languages for script editingInterpreted language (Bash Python perl)definition: Use the interpreter to read the code we write and convert it into system-related commands. Executive advantage: It's easy to deal with objects
Because there is an FTP server in the work, but each build has more trouble. Then wrote a shell script, here to share the script to everyone, if in doubt, please contact qq:403182580Default Create VSFTP User: DYCPassword: DYCFTP Data storage
I. Interface command interaction for shell scriptsecho "Please enter Css-dist:"Read Addcssecho "Start downloading the zip package for CSS"(wget $addcss) >>/dev/nullThe above is equivalent to:(wget http://****************-bin.zip) >>/dev/nullThe
Most of the time you don't have to write your own, but see if you can read it together and see an example of less than 10 lines.#!bin/bashgetcontent () {if [!-e $]; then return 1;fi content= ' cat $ ' echo ${content//root/h2do}}getcontent/etc/h
Recently used a cluster HP1, because the maintenance of the cluster of people do not give force, the node always over a period of time dropped one or two. When Hadoop was restarted today, HDFs was in protected mode.decided to filter out all the
The shell in Linux is a special application. It is between the kernel of the system and the user. Serves as the role of the command "interpreter". Responsible for receiving the user input operation instructions, and to explain. Pass the action that
Code statistics
C Ode as follows:
Xargs Description:Xargs reads the value of the stdin and defaults to a blank or carriage return as a delimiter, passing the split value as an argument to the command-line operation immediately
The cause of this error: CR/LF problem, press the return key under Dos/window to actually enter "enter (CR)" and "line break (LF)", and Linux/unix press the ENTER key only enter "line break (LF)", So the modified SH file will have a CR in each line,
Shell-find error Parsing
I have written an article about how to use shell to regularly clear expired files. In fact, the simple find command is used.
After my colleague adopted the script, he encountered several errors when debugging the script. I
Shell Study Notes (2) Regular Expressions in shell and shell Regular ExpressionsThe difference between a wildcard and a regular expression is the native syntax supported by bash. A regular expression is a way to process strings. A regular expression
Very powerful shell to write Russian square, shell Russian square
On the Internet, you can see a Russian box written using linux shell scripts. It is the most awesome shell I have ever written. Share.
The original author information is included in
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.