Init.rc start the shell you wrote

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

Consistency issues with the Shell's trap

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

The Linux shell gets millisecond-level timestamps

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

Linux Display login Shell information

Linux Display login Shell information[Email protected]:~$ finger-plogin Name Tty Idle Login time Office Office Phoneyouhaidong youhaidong *:0 Mar 8 22:10 (: 0) youhaidong youhaidong pts/0 Mar

Kesioncms V6.5 Back Shell method

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

The judgment statement in the Linux shell

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

The Linux shell script traverses all the files in the folder

#!/bin/bashfunction ergodic() { For file in ' ls $' d o                      if [-D $1 $file ] #如果 file exists and is a directory is true                      then                        ergodic $ 1 "/" $file        

Unix Shell Programming Notes series (II)

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

To interpret variables through shell scripts

Variable assignment, substitution, etc. #!/bin/bash#1. Assigning values to a single variableVariable1=33 #将变量variable1赋值为33Echo ${variable1} # #第一种显示方法为 ${variable1}echo $variable 1 # #第二种显示方法为 $variable 1variable2= "Hello World"

Linux Shell Basic Learning--cycle and condition judgment

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

Shell Script-tips

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 $

Reprint Shell Sort

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

The face question of the shell

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,

Linux Shell basic3 dd WC comm chmod ls

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,

(004) Linux shell wildcard

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

How the shell implements i++ operations and string interception operations

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

Special usage of shell brackets

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

Automatic FTP scripting (shell Bat) under Linux and Windows

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 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

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

Total Pages: 541 1 .... 374 375 376 377 378 .... 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.