Automated installation of shell scripts Universal binary format mariadb

#!/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 #

6 Sort,uniq of the shell command

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

5 TR of the shell command

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

bash Shell shortcut keys

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

Shell's basic concepts and variable types

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

Shell Command Collection

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

Unix Shell Programming Notes series (i)

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

Shell Scripting Learning

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

Make a shell script that creates a new project for Cocos2d-x

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

Querying the shell script for IP attribution

#!/bin/bashipp () {exec  '  | awk -F  ' [<>]+ '   ' {print substr ($5,7)} ' echo  $aecho  -e  "\033[44;37;5m  $string 1 \033[0m" done}case $1 in-f) Shiftipp  $1;; -i) shiftstring1= ' curl -s  "http://www.ip138.com/ips138.asp?ip=${1}&action=2"

Installation and use of mac-zsh--ultimate shell

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

Shell Judgments and comparisons

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.

Shell programming variables and variable types

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

Understanding fault pages by starting execution of shell processes

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

Shell scripts pass parameters with spaces [excerpt from network]

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

Shell exits, returns a summary

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

echo Display content color in shell script

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

Shell trivia (Occasional updates)

# # #判断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

Syntax knowledge of shell scripts--Numerical calculation

①$[]  $[$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

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

Total Pages: 541 1 .... 318 319 320 321 322 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.