What to add========================= Gorgeous split-line ====================+ Start haha_test@@ -1397,3 +1399,8 @@ Service poad/system/bin/poad User System Group system oneshot++ #add For Haha_test+service
Example 1:[Email protected] example]$ more trapping#!/bin/sh# scriptname:trapping# Script to illustrate the trap command and SignalsTrap ' echo ' ctrl-c would not terminate $. "' 2Trap ' echo ' ctrl-\ would not terminate $. "' 3echo "Enter any
There is no millisecond unit of time in a Linux shell, and only seconds and nanoseconds are actually sufficient, since the unit range of nanoseconds is (000000000). 999999999), so the nanosecond is also available from nanoseconds to
Title:kesioncms V6.5 Back Shell method--2011-03-29 00:21Recently get a site, is kesioncms V6.5 Web system, try to take Webshell method under the background, write down.1.The new x.asp user, combined with the IIS folder Resolution vulnerability, is
Remember that if and the [] are whitespace1. String judgmentSTR1 = str2 When two strings have the same content, length is trueStr1! = str2 True when string str1 and str2 are not equal-N str1 True when the length of the string is greater than 0
First, regular expressionPeriod. Matches any single character, such as a. Represents two characters after a match^//Match the beginning of the line, such as ^w, to match the W at the beginning$//matches the end of a line, such as x$, that matches
For loop1. Note Do must wrapFor i in {1..10} do echo $idone2. Note Do must wrapFor I in 1 2 3 4 5 do echo $idone3. Traverse the results of the command outputFor shname in ' ls *.sh ' do echo $shnamedone4. For loops similar to high-level languagesFor
1. Internal parametersThe above process is an internal variable, which is required to represent the program itself, and $ $ is optional. The same internal variables as $ A are as follows.$#----The total number of parameters passed to the program is $
Http://blog.sina.com.cn/s/blog_6d09b5750100x6zg.htmlThe first is the shell sort implementation of multi-column sorting, here to add a vertical line to split, the following file
on the Internet to see a test shell problem--the statistics of a folder size greater than 7MB the folder Okay, I'll do it. Deep, personal feel, this problem is the main test of the regular use of the Linux proficiency (I am not very familiar with,
Generating files of any size/dev/zerois A character special device, which infinitely returns the zero byte.The above command would create a file called Junk.datathat is exactly 1MB in size. Let ' s goThrough the Parameters:ifstands for–inputfile,
Fundamentals of the ten-year OPS series-LinuxZeng LinContact: [Email protected]Website: www.jplatformx.comCopyright: Please do not reprint the article without permission
First, IntroductionWe often have to execute command-line programs under
These days there is a bug wrapped around me for half a day, so I have this article.Touch screen because added a notebook keyboard can not be used, take off the notebook keyboard, touch screen can be used again, really ghost.A little research, the
The parentheses in the shell have their special usage and are summarized as follows:1. Parentheses after the symbol $${a} The value of variable A to omit curly braces without causing ambiguity.The $ (cmd) command is replaced with the result of the
First, look at Linux under:Copy CodeThe code is as follows:#! /bin/bashcd/ftp/Currentdate= ' Date +%y%m%d 'Yesterday= ' date-d yesterday +%y%m%d 'Threedayago= ' date-d ' 3 days ago ' +%y%m%d '#echo $TWODAYAGOFtp-n-I 34.97.34.3 User Ftpuser
Linux shell string truncation and splicing, linuxshell
Linux string truncation is very useful. There are eight methods.
Assume there are variablesVar = http://www.hao.com/123.htm
1 # intercept, delete the characters on the left, and retain the
Shell Escape Character collation
Escape: place the backslash (\) before the character to be escaped, indicating that the character should be considered as a common character.
When sed awk is used, escape characters are occasionally used.
For
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