- 3
- 0
- 约5.83万字
- 约 15页
- 2017-06-05 发布于河南
- 举报
Shell中符号意义(国外英文资料)
Shell中符号意义
The Shell symbol meaning
Classification: Linux 2012-06-275140 reading review (0) collecting tips
Comments
General case: this symbol is followed by the annotated text that will not be executed.
Special case: first line #! / bin/bash
Exception: if you are quoted, enclosed, or in the back of the backslash, then he becomes a generic symbol, with no such special function.
~ the tilde
Represents the users home directory CD
After the symbol, add the name of the account: CD ~ user
As part of the path: ~ / bin
The current working directory ~ + and PWD are the same.
The last working directory
; Command separator
Write multiline instructions in the same line, such as CD ~ / backup; The mkdir startup; Cp ~ /. * startup /.
;; Continuous semicolon (Terminator)
The role of the Terminator is reserved for case options.
Dot (dot)
Represents the current directory
.. superclass
If the file name starts with the name of the file, the file name is hidden and the -a option must be added to the file
In regular expressions, one. The representative matches a character.
single quote
Indicates strings, and prevents wildcard extensions and variable extensions
Double quotes.
Represents a string, but only prevents wildcard extensions
` backquotes (backticks)
Execute the command in a single, double-quoted string
Comma comma (comma)
This symbol is often used in operation as a partition
Forward slash
When the path is represented, it represents the directory separator.
Single/the meaning of the root directory;
In four operations, the symbol for division.
\ an inclined shoulder
Escape character in command mode, cancelled before the command alias, cancel the role of the special symbol before special symbol, in the end of the command said instructions to connect the next line.
| vertical lines
The pipe, which connects the standard output of an instruction, is the standard input for the next instruction.
The standard input 0
The standard output 1
Standard error output 2
eof to end the input
原创力文档

文档评论(0)