ADB introductionThe SDK's Tools folder contains an important command of the Android emulator Operation ADB,ADB is all called (Android Debug Bridge is the role of debug bridges. With ADB we can debug Android programs via Ddms in Eclipse. With this
Linux command and ShellThe so-called Shell is the command interpreter, which provides programming interfaces that can be programmed using programs. Learning the shell is very important for Linux beginners to understand Linux systems. LThe shell of
Give you a full, you in the Linux environment to try to understand more:The execution name of this program$n the nth parameter value of this program, n=1..9$* all parameters of this program, this option can have more than 9 parameters.$# the number
+++++++++++++++++++++++++ +++++shell Foundation +++++++++++++++++++++++++++++++1. Shell overviewShell definition:The Shell is a command-line interpreter that provides users with an interface system-level program that sends a request to the Linux
The Linux/shell command is primarily intended to address:1, check whether a port is occupied;2, check which process is occupied by a port;3. See which ports a process occupies;For example, my Tomcat failed to start, the log display port is occupied,
#!/bin/bashEcho"Enter The old IP:"$1Echo"Enter The new IP:"$2if[[ $1==""]];thenEcho"Usage: + $ Enter the new ip:$1"Echo"Usage: $ Enter the old ip:$2"Exit0FiI=0 forLineinch' Ls/etc/sysconfig/network-scripts | Grep-e"Ifcfg-em|ifcfg-eth"` Dostrip= '
Serial number
Task
Command combination
1
Delete a 0-byte file
Find. -type f-size 0-exec rm-rf {} \;Find. Type F-size 0-delete
2
View processes, sorted by memory from large to small
PS-E-O "%c:
A point set is given to find the maximum Triangle Area of the vertex in the point set. We know that the three points of the Triangle must be on the convex hull. After finding the convex hull, we cannot enumerate it. Because N is a large question,
Break: exit the loop body continue: ends this loop and enters the next loop.Special usage of while 1: While: dodone the above is an endless loop of while.Special while usage 2: While read linedodone Function: FunctionSyntax format: Method 1:
I don't have a tutorial. Let's talk about it!We get a shell. If we want to know more about it, we can't trace it in depth. There is no shortcut! You have to pay a lot of time and thinking and analysis. If you cannot do this, please give up. It is
The problem is as follows: perform a loop based on the number of Script Parameters $ #, and output each parameter $1 $2 $3 in sequence ...... I have a loop variable I $ I. When I get this variable I is 1, I want to use this 1 and then call $1, that
Learn shell exercises
Check whether the/tmp/lzz directory has the read/write permission. If not, add the permission.
#!/bin/bash#name: testdir.sh#authro: orangleliu#date: 2014-08-03#version: v1.0#===================TestDir="/tmp/lzz"#==============
Write a script to fully install the samba service and share the directory. Input by the user,The script is automatically determined based on user input. Then write to the samba configuration file and access Samba. The unified user is root.
The
Execute another shell script in the shell scriptYou can execute another shell script (or non-executable file, mainly used to obtain the value of some variables) in one shell script :. file name (including path) or variable = file name (including
[email protected]:~$ cat b.sh#!/bin/bashdir=`pwd`dir=$dir‘/‘for f in `ls *.png`do echo $dir$fdone
Check the execution of each line of code:
[email protected]:~$ bash -x b.sh++ pwd+ dir=/home/wade+ dir=/home/wade/++ ls chrome_1407299385726.png
Functions allow us to divide a complex function into several modules, so that the program structure is clearer and the code reuse rate is higher. Like other programming languages, shell also supports functions.
Shell functions must be defined before
1. Introduction to IFS
The shell script has an internal domain separator called ifs (internal field seprator. The complete definition is the shell uses the value stored in IFS, which is the space, tab, and newline characters by default, to delimit
Introduction:In the previous article, the incremental data in Oracle10g is imported into hive0.13.1, and the master table in hive is updated. http://blog.csdn.net/u010967382/article/details/38735381 describes the principle of incremental update hive
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
In most cases, the print statement of the awk can complete the task, but sometimes we need more. In those cases, awk provides two well-
[Shell] input parameters
Obtain the input parameters of the shell script and the obtained parameters.
#! /Bin/bash # title: testPT. sh # atuhor: orangleliu # date: 2014-08-08 # desc: enter two parameters and the second digit. Print them if they are
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