Android4.2 Source Android-17\com\android\commands Directory is more than the previous version of a settings command to view the Settingscmd.java file, at the end of the command to help information:private static void Printusage ()
1111111111111 simple command script to clear messages log file under/var/log/var/log/the log file when the system files, must have root permissions:$UID is the global variable of the system:Make && make install indicates that the previous success
Source of demand: The default IP link show command output will output the network card (including the virtual network card) name, MAC address, port status, and other information, but also mixed with some useless information, this time the string
Reprint: http://www.cnblogs.com/lr-ting/archive/2013/02/28/2936792.htmlecho Display in shell script with color display, echo display with color, need to use parameter-EThe format is as follows:For example:Where 41 of the position represents the
Transferred from: http://blog.csdn.net/jingxiangren/article/details/4745631In Oracle, the Dbms_job package can be used to perform PL/SQL procedures, which are required at the operating system level, such as backups, to be performed at the OS stage
The logical operators of the shell involve the following types, so as long as the appropriate choice, can solve our many complex judgments, to achieve a multiplier effect.First, the logical operator
Logical Volume Label
Express
Character expansion*This "*" character means matching any character in the file nameThe shell expands "*" into something else, before the echo command is executed.~ Home DirectoryArithmetic expression expansionAn arithmetic expression expands using
1. Write the shell script and calculate the 1-100; 2. writing shell The script requires a number to be entered and then calculated from 1 to enter the number and, if required, if the number entered is less than 1 3. writing shell
Shell floating point arithmetic tool BCBC supports floating-point numbers, which is an advanced tool for mathematical operations.[[Email protected] Desktop]# BCBC 1.06Copyright 1991-1994, 1997, 1998, Free Software Foundation, Inc.This is the free
What I want to say here is a few shell parentheses, braces and parentheses, the use of commands, as follows:1.${var}2.$ (CMD)3. () and {}4.${var:-string},${var:+string},${var:=string},${var:?string}5.$ ((exp))6.$ (Var%pattern), $ (Var%%pattern), $
Login:
Bash executes/etc/profile first and then calls ~/.bash_profile.
Cancellation:
Bash calls ~/.bash_logout.
Execute the new shell:
In desktop management programs such as KDE,GNONE,ICEWM, execute terminal programs or perform
Environment Variables
$HOMEHome directory of the current user
$PATHA colon-delimited list of directories to search for commands
$PS 1A command prompt, usually a $ character, but in bash, you can use some more complex values. For
Problems with the interception of shell strings:The Linux shell intercepts the first 8 bits of a character variable, with the following methods:1.expr substr "$a" 1 82.echo $a |awk ' {print substr (, 1,8)} '3.echo $a |cut-c1-84.expr $a: ' \ (. \ \).
I want to modify the file name similar to the following batch of files:Aa01_01.txtAa01_02.txtAa01_03.txtAa01_04.txtModified intoBb02_01.txtBb02_02.txtBb02_03.txtBb02_04.txtReplace the head of the file name.============================================
(1) If statement[Email protected]:/mnt/shared/shellbox/shellif# cat shellif.sh #!/bin/bash# judgment string if ["$" = "Hello"]then echo "\$1= $ "fi# judgment number, if () mode can only be used under bash, not under sh if (>) then echo"
Preface or today to write an automated packaging script, using the path name to get the last file name. Here is a record of the implementation process. Of course, in the end I will also give the official approach. (PS: Very embarrassing, realized
Phenomenon: Hourly data in hive tables, which are missing one hours every few days, are found to fail when data aggregation cat is done, resulting in: Modify the script to do the following solution: # #merge 5min data into hour data
Winlicense provides the strongest and most scalable technology to enable developers to securely distribute trial and full versions of their software. The following is a description of the Winlicense interface function (Chinese) I. Application
Install tomcat in linux (centos) (use shell scripts to install tomcat as a service) and centostomcat1. Download tomcatDownload the linuxlinuxversion (tar.gz) from http://tomcat.apache.org/download-70.cgi)2. decompress, upload, and grant
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