Home  >  Article  >  System Tutorial  >  Explain how to use CentOS file wildcards

Explain how to use CentOS file wildcards

王林
王林forward
2023-12-29 23:41:381290browse

*: Match zero or more characters

? : Matches any single character

~: Current user home directory

~username: user home directory

~: Current working directory

~-: Previous working directory

[0-9]: Match any number range

[a-z]: Match any lowercase letters (Note: Depends on the file system)

[A-Z]: Match any uppercase letters

[wxc]: Match any character w or x or c

in the list

[^wxc]: Match all characters in the list except any characters except wxc

[:digit:]: Any number, equivalent to 0-9, double square brackets [[:digit:]] must be added when using it

[:lower:]: Any lowercase letter, equivalent to a-z, double brackets [[:lower:]]

must be added when using

[:upper:]: Any uppercase letter, equivalent to A-Z, double square brackets [[:upper:]] must be added when using it

[:alpha:]: letters of any size

[:alnum:]: Any number or letter

[:blank:]: horizontal blank character

[:space:]: All whitespace characters

[:punct:]: All punctuation marks

[:print:]: Printable characters

[:cntrl:]: Control (non-printing) characters

[:graph:]:Graphic characters

[:xdigit:]: Hexadecimal character b

The above is the detailed content of Explain how to use CentOS file wildcards. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete