Linux continues to learn bash features (20170420)

Source: Internet
Author: User

Command aliases

Alias aliases = ' '

Aliases defined in the shell are valid only for the current shell life cycle, and the valid range of aliases is only the current shell process

To permanently use aliases in the shell, you need to change the configuration file

Alias displays all aliases that can now be used if no parameters are added later

Command substitution

$ (command), anti-quote

File name wildcard globbing

*: can match any character of any length

? : can match any character (only one character)

"": matches any single character within the specified range

[^]: matches any single character outside the specified range

": Space:" White space character

": punct:" Punctuation

": Lower:" Lowercase letters

": Upper:" Uppercase

": Alpha:" Uppercase and lowercase letters

": Digit:" number

": Alnum:" Numbers and uppercase and lowercase letters

Man 7 Glob can display a wildcard help


Quotes supported by bash

' Command Replace '

"" Weak reference, you can implement variable substitution

' Strong reference, do not complete variable substitution

Linux continues to learn bash features (20170420)

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.