Often seen in the shell: >/dev/null 2>&1

The shell can often be seen: >/dev/null 2>&1/dev/null represents an empty device filewhere does the > delegate redirect to, for example: echo "1111" >/home/a.txt1 means stdout standard output, the system default is 1, so ">/dev/null" is equivalent

The contents of the shell command

[ -a file] is true if file exists. [ -b file] True if file exists and is a block special file. [ -c file] True if file exists and is a word special. [ -d file] True if file exists and is a directory. [ -e file] is true if file exists. [ -f file]

"Distribution system" of shell programming

First, expect explanation Expect allows us to automatically log on to remote machines, and can implement automatic remote execution of commands. Of course, if you use key authentication without a password, you can also implement automatic

MIT 6.828-operating System Engineering Homework:shell

This is the 6.828 first section of a small job, is to implement a shell, most of the source code is given, but compile a lot of bugs and warning found, so need to read the source and then change their own.The focus of this assignment is to

Shell Special Variable character interception

Shell Special variablesVariable meaning$ $ Gets the script name of the currently executing shell script, including the path and script name if the script has a path$n Gets the nth parameter in the currently executing shell script. But when n=1..9,

Using awk to process large volumes of data in shell scripts

First, the demand      original file a for 1.7g file, with 5 1700 Mangyo look. There are also 2 auxiliary files b and C, b c files are only 2 column. a1 and b1 same, A2 and C1 a1 B2, c2" a4 a5, the target file is named d.txtSecond,

Part Three Shell Programming 3 (Shell Script 2)

7. If you judge some special usageIf [-Z $a] This indicates what happens when the value of variable A is emptyIf Grep-q ' 123 ' 1.txt; Then what happens if the 1.txt contains a ' 123 ' rowif [!-e file]; Then what happens when the file doesn't

[Shell] Bash variables: Configuration file and login information for environment variables

-----------------------------------------------------------------------------------------Only the environment variables are placed in the configuration file to automatically take effect each time the power-on. SOURCE command: Let the configuration

An example of application of sed command and Shell's if statement

if [-f/etc/syslog.conf]; #判断文件是否存在Thensystest= ' sed-n '/^auth.info/p '/etc/syslog.conf '; #匹配 the/etc/syslog.conf file has a auto.info string and returns a string, Systest variable is received.if [-n \ "\ $systest \"]; #判断字符串是否存在ThenSed-e ' s/^auth.

function calls in the shell of the Linux shell

Talk about the function call, I believe that everyone will not be unfamiliar, but for the beginner shell of me, Shell function call Way is a bit let me not very accustomed to, I also go a lot of detours, because the transfer of parameters when a

Shell Programming Topic Exercises

1. Write the shell script, calculate 1-100 's and;650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/B2/wKiom1XWy-eBa3uqAAENi2u4ldc587.jpg "title=" 1.jpg " alt= "Wkiom1xwy-eba3uqaaeni2u4ldc587.jpg"/>2. Write the shell script, ask for a

Common operations Summary for HBase Shell

 1, creating table: Create ' t1 ', ' F1 ', ' F2 ', ' F3 '                   #-------T1 is the table name, F1,F2 , F3 is the column family name  2, view all tables: list 3, view the structure of the table: describe ' t1 '  4, add a column family:

Shell command Line Quick Edit command

CTRL r: Command line appears reverse-i-search, input character will match command in input historyCTRL P: Go ahead and look through historyCtrl N: Looking back over historyCtrl A: Command headerCtrl e: Command line endCtrl F: Jump forward one

Shell script: While

The while loop is used to continuously execute a series of commands and to read data from the input file; the command is usually a test condition. The format is: while Command Do If True done The following is an example of a basic while

Linux Learning -10-Learning shell scripts

[Email protected] ~]# mkdir scripts; CD scripts[Email protected] scripts]# VI sh01.sh#!/bin/bash declaring shell names# program: Description of Procedure Content# This program shows the "Hello world!" in the Your screen.# History:# 2005/08/23 Vbird

Linux Shell Command Series (5) VI Editor

VIEditoris the standard for all UNIX and Linux systemsEditorThat it's powerful not inferior to any of the latest textEditor, here is simply a brief introduction to its usage and a small number of instructions. Because of any version of UNIX and

Linux Shell Command Series (1)

1. ls commandThe LS command is the meaning of listing directory contents (list directory Contents). Running it is to list the contents of a folder, possibly a file or a folder.The "ls-l" command lists the contents of the folder in detail mode (long

Ubuntu uses shell scripting to copy a class of files from all directories in the current directory to the same directory

There are some files and directories under the current directory, each of which has several. txt files in each directory.It is now required to create a new directory in the current directory all, and all of those directories will have a. txt fileare

"Dynamic Domain name resolution tool" tunnel, domestic version of Ngrok, peanut shell can sleep

In the author's series of development tutorials, there is a relatively basic and important section: Development debugging. In the article I recommend two dynamic domain name resolution tools to deploy the local development environment as a server,

Peanut shell and network address translation

Network address Translation (NAT) has a port translation called NAPT that is network addressWhat NAT is:Devices inside the network are assigned private IP addresses, but NAT-enabled routers retain one or moreAn Internet IP address that is valid

Total Pages: 541 1 .... 213 214 215 216 217 .... 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.