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

Pass the array in the shell script to awk

If you encounter this problem, write it in your own way. Here, only the relevant part is shown. # Getting the length of an array Array_len = "'wc-l temp2 | awk '{print $1 }''" Temp_index = 0 Declare-A array_date # Assign values to arrays in

Use filezilla and SSH Secure Shell client to upload and download files on Ubuntu through SSH

Use filezilla and SSH Secure Shell client to upload and download files on Ubuntu through SSH   L use filezilla First, start the SSH service on Ubuntu.   Sudo/etc/init. d/ssh restart   Start filezilla on Windows: For example, if 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

Enterprise Unix shell behavior audit system-secondary development based on enterprise audit shell (EAS)

For more information about EAS, see Enterprise Unix shell behavior audit system-enterprise audit shell (EAS) and Use eash to implement shell audit in Linux. Due to the company's needs, I have performed secondary development based on EAS, and some

BASH Shell Command Line option/parameter Processing

Options and parameters: For example, the following command line:./Test. Sh-F config. conf-v-Prefix =/home We call-f an option. It requires a parameter, that is, config. conf.-V is also an option, but it does not need a parameter. -Prefix is called a

Linux Automatic startup shell and init Overview

Linux running levelAfter Linux is started, it runs at one level. The following lists the running levels:0 system stopped1 single user system, no login required2 multi-user system, but does not support NFS, command line mode Login3 full multi-user

Shift in shell programming

#! /Bin/shFiles = ""Trcase = ""EXT = ""Opt = No # Gets called when a conversion failsError_msg (){_ Filename = $1Echo "'basename $ 0': Error The Conversion failed on $ _ filename"} If [$ #-EQ 0]ThenEcho "for more info try 'basename $ 0' -- help"Exit

Shell Programming to Implement multiple attributes of a BACnet Device

#! /Bin/bash Prog = 'basename $0'Optional = 0 Usage (){Echo "Usage: $ prog [Options] [...]Will return required and optional property valuesFrom the requested device. -O display optional properties [default behavior]-O supress display of optional

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:

Use environment variables in crontab (you can manually execute shell scripts, but not in scheduled tasks)

How to reference defined environment variables in crontabA shell script/root/test/Shell/test_crontab_env.sh uses an environment variable test_crontab_env = test_crontab_env.Test_crontab_env exists in/etc/profile.For example:#! /Bin/bashEcho "'date +

Install macports on Mac OS X lion (which makes it easier for you to use MACOs shell)

Reprinted please famous from: Shi Shang Liu Jing Hong poechantcsdn blog, the original link: http://blog.csdn.net/poechant/article/details/7213209 0. What is macports? Macports is an open-source project initiated by the open-source community to

Linux shell scripts that safely kill Tomcat Processes

Linux shell scripts that safely kill Tomcat processes, as many good script programming skills are used in this script, I would like to share with you; ## Firstly find the process of the tomcat ....Tomcat_process_str = 'ps aux | grep 'java. * Tomcat '

Common Berkeley dB XML shell commands use instances

Common Berkeley dB XML shell commands use instances Author: gobitan (rain) Date: Reprint please indicate the source of http://blog.csdn.net/gobitanCreate a container createcontainer book to add a document to the container (multiple documents can be

Shell script to open the IE shortcut URL File

[InternetShortcut]URL=http://www.baidu.com/IDList=BEST=0[{000214A0-0000-0000-C000-000000000046}]Prop3=19,2 The above is the code for opening the Baidu shortcut file in text format saved in windows. The format of all URL files is basically the same.

Shell checks the legality of IP addresses and the legality of network masks.

Sometimes we need to check the correctness of IP input and the correctness of the network mask, written in shell script: # Verify IP address correctness check_ip_format () {echo $1 | grep "^ [0-9] \ {1, 3 \}\. [0-9] \ {1, 3 \}\. [0-9] \ {1, 3 \}\. [

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

Shell script Learning (III): Shell functions and some common symbols and commands

Shell script Learning (III): Shell functions and some common symbols and commands I. Shell functions Like C, Shell functions encapsulate commands and statements that have fixed functions and are usually used repeatedly in a single function, if you

Total Pages: 541 1 .... 310 311 312 313 314 .... 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.