Linux in respect of such a school _ Chapter 3

Linux in respect of such a school _ Chapter 3
Linux in respect of such a school _ Chapter 3
Linux in respect of such a school _ Chapter 3

Creating an archive:
tar czvf name .tar.gz archive file name (the name of the file to be packaged)
Extract the file:
tar xzvf name .tar.gz archive

Output redirection: It is supposed to be output to the contents of the screen to enter into a file, and redirect the output is redirected into the standard error output redirection, which points to redirect standard redirect standard emptied (>) and the additional weight standards orientation (>>); empty redirect the error output error redirection points (2>) and error append redirection (>> 2). We can also use the full output redirection (&>), irrespective of the command execution is correct, all output to a file.
Input Redirection: less used, is to import the file into the command to execute, such as wc -l </ etc / fstab

Pipe symbol (|): the output of the previous command is input to the contents of the screen as a re-execution command again.

Common escape sequences:
The backslash (\): a variable behind a backslash character string becomes simple. (Single escape)
single quotation marks ( ''): wherein all variables escaped as a simple string. (Global escaped)
double quotes ( ""): wherein the variable attributes retained without escaping. (As in whole, separated with a space between)
the anti-quotation marks ( ''): wherein the return result of command execution. [Equivalent to $ ()]

Linux system, the most important of the 10 environmental variables
Linux in respect of such a school _ Chapter 3

Guess you like

Origin blog.51cto.com/7170313/2437915