A summary of Linux wildcard characters

Source: Internet
Author: User
Tags tmp folder

About the bird's Linux private dishes

*-wildcard character, representing random characters (0 to more)
? -wildcards, which represent one character
#-Gaze
/-Jump symbol to restore special characters or wildcards to a general symbol
| -demarcation of two pipeline commands
; -Definition of continuity order
~-User's root folder
$-Variable value to be added before the variable
! -"Non" (not) in logical operation
/-Path Separator symbol
>>-Output guidance, respectively, "replace" and "accumulate"
'-single-pin, no variable substitution function
"-double-cited, with variable displacement function
'-quote symbol, two ' in the middle for a command to run first
()-Middle is the beginning and end of the child shell
[]-Middle is a character combination
{}-middle command block combination
CTRL + C-terminates the current command
Ctrl+d-Input End (EOF), such as when the message ends
Ctrl+m-Just enter
Ctrl+s-Pause the output of the screen
CTRL+Q-Restore the output of the screen
Ctrl+u-at the prompt, delete the entire line of command
CTRL + Z-Pause current command
&&-When the current command runs successfully, the following command is run
|| -When the current command fails to run, the following command is run

The most frequently used is *,? , [] and '. Here are a few simple examples:

1,ls test* <== * means that the following characters are accepted (no word Fuye accepted)

2,ls test? <==? Represents the back when and only if a word characters accepted

3,ls Test??? <==??? Indicates that three characters must be answered

4,CP test[1~5]/tmp <== test1, Test2, Test3, Test4, test5 If present, copy to/tmp folder

5,cd/lib/modules/'uname-r'/kernel/drivers <== is "the command to run first. "

A summary of Linux wildcard characters

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.