Redirection comment in Shell

00 00 1 ** echo "">/usr/local/Apache/logs/error_log>/dev/null 2> & 1>/Dev/null redirects the output to/dev/null, which is an empty device, that is, ignoring its output.2> & 1 refers to outputting errors to the standard output. If debugging is

CMD uses shell commands to change the permissions of Android files (real machines)

CMD uses shell commands to change the permissions of Android files (real machines). The commands executed are as follows: ADB shell ---> press ENTER ----> su ----> press ENTER -------> chmod 700 data ----> press Enter. Then, the permission for the

Universe in Shell

Hawking wrote, good. Colorful pages look good, just like watching a picture. However, the text used is a bit esoteric to me. Like the past, we are still pursuing knowledge, exploring the mysteries of the universe, hoping to know the past and the

In Android shell, SH: CP not found

Using the MV command is not feasible for read-only files. If you want to transfer files between your PC and your android target, the easiest way is to use pull or push, if you are copying files in different folders on your android target machine,

Shell -- loop for & while & util

1 For Loops Structure: For ARG in [LIST] Do Command (s )... Done #! /Bin/bashsum = 0for int in 1 2 3 4 5do sum = 'expr $ sum + $ int 'doneecho $ sum 2 while Determine whether the condition is met at the beginning of the

An automatically upgraded Shell

Echo "******************* ESS starts upgrading ****************** **********" Curdate = 'date' + % Y % m % d'' CP./applications/xxxx. Ear./applications/xxxx. Ear. back $ {curdate} # Check whether the upgrade package has been uploadedIf

Record split Shell

If [-z "$1"]; thenEcho "You did not enter the parameters for executing the shell"Exit;Fi If ["$1 "! = "JF"] & ["$1 "! = "Token"]; thenEcho "enter the name of the server to be uploaded: JF score, audit by region"Exit;FiCur_year = 'date + "% Y

A simple shell Backdoor

A simple shell Backdoor Author: Pony/smallhorse [e.s. t VIP] (it doesn't matter if you do not write this e.s. t VIP)Source: evil baboons China Recently, I was bored and thought about writing a simple shell backdoor. At the same time, anti-virus

Shell (3) + File Operations

2.6.6 Command Execution 1 $ (command): capture the execution result of a command and use it in the shell script programEcho the date is $ (date) // The result is the output of the command, which is a string output.Set $ (date)Echo the month is $2 //

Custom wince Shell

  ARM-based Windows CE kernel startup Analysis 1 1. startup. S2 2. kernelstart2 2.1 arminit () 3 2.1.1 oalintrinit3 2.1.2 oaltimerinit4 2.1.2.1 variable tick scheduler4 2.2 kernelinit () 4 2.3 firstschedule5 1. startup. s Kernel entry point:

Linux Shell programming knowledge point summary (to be continued)

2011-04-23 wcdj   The method for learning shell program design is: Hands-on + man command The following scripts are all tested in cygwin.$/Bin/Bash -- versionGNU bash, version 2.05b.0 (1)-release (i686-pc-cygwin)Copyright (c) 2002 Free Software

How to use quotation marks in Shell

1. Shell uses quotation marks (single quotation marks/double quotation marks) and backslash ("\") for the shell interpreterSHIELD special characters. Reverse quotation marks [H2] have special significance for shell. 1.1 single quotes and backlash [

BASH Shell braces Extension

  Zhou haihan/Wen 2010.6.10   BASH Shell extension refers to an operation in which Shell expands commands when analyzing input commands. There are 7 extension methods. Refer to the man bash extension page: Expansion the command line extension is

Windows shell programming

Download an e-book in chm format:Http://download.csdn.net/source/2843130   Note: I did not write this book. I just compiled it into an e-book for your convenience.   A good definition of an operating system shell is that it is a user interface

In the vbs script, folder traversal is used in the middle, and regular matching is performed. Several methods of wscript. Shell object are used.

This script only satisfies part of the work I want to complete, and the rest of the content must be completed and debugged in the company. Script running requires the following conditions: Ctags.exe in the same directory as the script requires

Shell (5) Regular Expression .doc

Regular Expression Engine The special characters that describe the matching mode and the general characters;   Bre POSIXBasic regular expression,EreExtended regular expression;GawkSupportedEre,SedNot supported.   1) Regular Expression mode: L

Shell (11) shell .doc

/* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145

Shell (2) condition 2.16.doc

UsedIf/whileAnd so on;  Test Command Test Condition, When the condition isTrueReturns0; IfTest condition; thenIf[Condition]; then#Note the space,TBDSupported?If 0 ...... FiFi  Test Condition judgment, three types 1) Value

ADB shell dumpsys command to view memory

The memory of the android program is divided into two parts: Native and Dalvik. Dalvik is the Java heap we usually call. The objects we create are allocated here, bitmap is directly allocated on native. The memory limit is that native + Dalvik

Summary of common shell script commands for later use.

#!/bin/sh#for exm to test# ./check.sh 12 36 25 12 453 1 2 3 RETVAL=0SRRVER_START=1SRRVER_STOP=2DNS_STATUS=1dnsCheck(){ while test "x`pidof dnsmasq`" != x ; do echo "check DNS status...................."

Total Pages: 541 1 .... 337 338 339 340 341 .... 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.