Linux wildcard characters

Source: Internet
Author: User

Wildcard characters are commonly used in bash environments:


* represents all (0 to more) characters

? Represents any of 1 characters

; Delimiters for successive different commands

# Configuration file comments

| Pipeline

~ User's Home directory

-Previous Directory

$ required symbol before the $ variable

/path delimiter

> or 1> Overlay redirect

>> Chasing heavier orientation

< input redirection

<< Append input Redirection

' Single quotation mark does not have variable substitution function, the output is WYSIWYG

"Double quotes with variable substitution function, output after parsing a variable, no quotation marks equivalent to double quotation marks (slightly different when there are parameters)

' Anti-quotes, the middle command will be executed first, equivalent $ ()

The middle of {} is a chunk combination or a content sequence such as: {1..5}, {A. D

! "Non" in logical operation!

&& when a command executes successfully, the following command is executed

|| The current one instruction execution failure is = when the following instruction is executed

.. Top level Directory

. Current directory


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.