#!/bin/Bashdatadir="/mydata/data"sqlconf=/etc/Mysqlinstalldir=/usr/local/mysql# about the installation package you can go to the official website to download, pay attention to download the common binary format, and then put on the FTP server can be #
Sort is used for sorting, and the uniq is used to de-weigh, and these two commands are often used together. Mainly because the Uniq to the premise that the text must be arranged in order to be.Of course, it is true that these two commands are indeed
This is a magical command.TR's whole spell is translate, that is, translation. The interesting thing is that we can make rules for translation. Use the following:TR [option] set1 [Set2]TR accepts input from the standard input and prints the result
TRL key combinationCTRL + A: The cursor moves to the beginning of the line.CTRL+B: The cursor moves left one letterCTRL + C: kills the current process.Ctrl+d: Exits the current Shell.Ctrl+e: The cursor moves to the end of the line.Ctrl+h: Deletes
Static languages: Compiled languages are converted into executable formats in advanceStrongly typed (variable)Key words:C C + + JAVA C #Dynamic language: Interpreted language on the flyWeak typeEdge Interpretation Side ExecutionASP. NET Shell PHP
CCat Zdd Browse the contents of a ZDD fileCat Zdd1 Zdd2 Browsing the contents of multiple filesCat-n ZDD Browse the contents of a file Zdd and display line numbersCD back to the start directory, that is, just logged into the system directory, CD
I. Review of BASIC commandsDate//day and time displayedWHO//view all users logged in to the systemecho//Display the input contentFile Operation classLS//List file listCAT//Display file contentsNumber of words in WC//statistics fileCP//Copy
To see what versions of the Shell:cat/etc/shells system are currently running, the first process that starts is initHow bash Shell debugs:Simply add parameters after the SH command-N: Do not execute scripts, query the grammar within the scripts, if
1. Enter the console directoryCd/users/apple/documents/myarchitecture/cocos2d-x/framework/cocos2d-x-3.4/tools/cocos2d-console/bin2. Write the shell script stored in your own program directorynewproject.sh#!/bin/bashecho please Input Project
Foreword: Zsh can be configured strong, user can customize the configuration, personalization is strong. Zsh Tab Completion is more powerful, this feature allows us to save a lot of time. Zsh also has the code highlighting function, makes the code
Http://blog.chinaunix.net/uid-7553302-id-183648.html1 Shell's $! , $?, $$,[email protected]
$n The first parameter,$2 the second ...
$# the number of command-line parameters.
The name of the current program.
Programming languages: Including machine language, assembly language, {high-level language [static language (compiled language, generally strongly typed variable, need to be published as executable, C, C + +, java,c#) and dynamic language
Loading the shell process through process 2, in detail execve, this article, the last shell program to start executing the linear address is 128MB, due to Free_page_tables, has released the 32nd-bit page directory entry. Therefore, a fault is
parameter Handling
Description
$#
The number of arguments passed to the script
$*
Displays all parameters passed to the script in a single string
$$
The current process ID number for the
Common returns in the shell are: Exit,breakm,returnExitIn fact, after each command is completed, it will return an execution state!If the execution succeeds, it returns 0If execution does not exceed, return non 0!Example application: Use the shell
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
# # #判断linux系统是32位还是64位You can use "getconf word_bit" and "getconf long_bit" to get the digits of WORD and LONG, and 64-bit systems should be 32 and 64 respectively.If [$ (getconf word_bit) = ' + '] && [$ (getconf long_bit) = ' 64 ']; ThenEcho
①$[] $[$a operator $b]Example: a=2;b=3;echo $[$a + $b] # 5echo $[$a-$b] #-3echo $[++ $a-$b] #0c=$[$a + $b] #√c=6D=$[A+B] # 6 Note: Except that the self-add-decrement operator is supported; only integer operations can be performed; + + does not
Linux-shell test, linux-shell
Nature of testing:
Is an operation command
According to $? Return Value to determine whether the condition is true
Operation Specifications:
Format 1: test Condition expression
Format 2: [conditional
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