Shell Command: ls-Al> out. log 2> & 1
Command Description: redirects the 1 (stdout) Output and 2 (stderr) output of the shell command to the out. log file.
Explanation: ls-al. After a commond statement is executed, there are two types of output:
Check the HTTP proxy to check whether the proxy service is normal. You need to ping the XXXXX port on the proxy machine.
Because the number of machines is too large, You Need To Batch Execute Telnet commands.
The script is as follows:
Port =
Linux ShellVariable auto-increment is often used when writing a loop. Now let's summarize the auto-increment method of integer variables.As I know, bash currently has five methods:1. I = 'expr $ I + 1 ';2. Let I + = 1;3. (I ++ ));4. I = $ [$ I + 1];5
Sender Shading
From Pixar's paper
Sender Shading
This slice of hair shell is based on FMM (Fast Marching Method) to obain A Level Set function in order to get a "imaginary" curve normal for hair
In Windows shell scripts, if you want to use the current date and timeCompositionFile name. You can use the following method:
First obtain the string of the current date and time;
Separate the desired characters;
Finally, splice the file
# Set the dump file size limit. Ulimit-C unlimitedcd/home/linbc/build/bin # Check whether the dump Folder does not exist. If [! -D ../dumpfile] Then ECHO "Create dumpfile fold" Mkdir ../dumpfilefi # Search
My
_ App1: whether it exists
Run the following command:
Echo 1>/proc/sys/NET/IPv4/ip_forwardIptables-T Nat-A postrouting-s 172.30.1.0/255.255.255.0-O eth0-J MasqueradeIptables-T Nat-A postrouting-O eth0-D 10.10.8.0/24-J Masquerade
You can output the current iptables
Keywords : Android am activitymanager: Go to shell to reference C: "events and settings" mawenjian> ADB Shell check the help reference of the command # Am-help am-help error: Unknown command:-help usage: am [Start | instrument] am start [-A
If-fi
#! /Bin/bash # delete a file and create a file file = readme function delfile () { If [-e. /$ file]; then RM-f. /$ FILE echo "del $ file... " fi } function AddFile () { If [! -F. /$ file]; then touch $ file echo "add $ file... " fi }
1. Echo "AA"> test.txt and echo "BB"> test.txt //> clear the original file and write the content to the file.> put the content at the end of the file.2. chmod go + w-r/home/zhangy // Add write permissions to group users and other users3, tar-tzvf
2. Control Flow Structure
Exit status
While, for, and until loops Loops
If then else statement
Actions in the script
Menu
1. ExitAn exit status is returned when any command is running. To observe the exit status, run the following command:$
First article written since last timeArticleTwo months have passed. This article describes how to obtain the decrypted il bytes.Code.Let's review the previous article. In the previous article, we mentioned that "After infacemaxtocode. startup is
Linux file descriptor: Three file descriptors are opened by default: standard input 0, standard output 1, error output 2
Output redirection
Command-line1 [1-N]> file or file operator or device
First, check whether the file on the right exists.
In the past, when grub information on the machine was lost or damaged, use rescue mode to enter and then reinstall grub-install/dev/SDA.For some reason, grub-install/dev/SDA may encounter more or less problems during execution. We can also use
Who
All users currently logged in to the system
Cat
Examine the contents of a file
WC-l
WC-W
WC-C
Get a count of the total number of lines, words, and characters of information contained in a file
Write in ShellCodeSome commands are commonly used, so we can integrate them to implement some small functions. Take a note:
The first script is used to compare different versions of SVN, with the help of SVN's command line tool and vimdiff tool:
[-A file] true if the file exists.[-B file] If the file exists and is a special block file, it is true.[-C file] If the file exists and is a special word file, it is true.[-D file] If the file exists and is a directory, it is true.[-E file] If the
1,! $Is a special environment variable, which represents the last string of the previous command. For example, you may:
You can change it:
$ Mkdir mydir
$ MV! $ Yourdir#$ MV mydir yourdir
$ CD! $
2,^ Old ^ new
Replace some strings in the
MSSQL differential backup is compared with the previous backup to back up different content. In this way, as long as new content is inserted after the previous backup, differential backup can back up the newly inserted content, and this backup file
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