04.bash Foundation

Source: Internet
Author: User

◊ Basic framework:

A) wildcard characters *? [1-3] [123]

b) input/output redirection < << > >> 2>

c) Piping |

d) Background jobs jobs BG FG

e) Historical History!+ Historical Command number

f) Command Completion tab Press TAB to display all occurrences

1 , wildcard characters

* Match All ( multiple ) characters

? Match a single character

2 , input and output redirection

> Output Redirection (Overwrite)

2> Error Output redirection

&> includes both functions (> and 2>)

>> Append output to File

< input redirection

<< here document (statistics two the same delimiter between the text information WC <<)

3 , Piping

Standard output of the previous command as standard input for the latter command

is a means of inter-process communication

The representation in the kernel is a memory buffer.

4 , background jobs

& Create a background job and return control directly to the shell

Jobs queries the current job

CTRL + Z Stop the foreground job

BG puts a stop-state job in the background

FG puts background work in front of the desk

5 , historical records

History Query Historical Table

!+ History command to execute a command in the history table

6 , aliases

Alias

Unalias

/etc/bashrc

.  The profile name is used to execute the corresponding configuration file (. . BASHRC)

04.bash Foundation

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.