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). The commands executed are as follows: ADB shell ---> press ENTER ----> su ----> press ENTER -------> chmod 700 data ----> press Enter. Then, the permission for the
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
L use filezilla
First, start the SSH service on Ubuntu.
Sudo/etc/init. d/ssh restart
Start filezilla on Windows:
For example, if the
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
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
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 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
#! /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
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 +
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, 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
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
[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.
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 \}\. [
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
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
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
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