Shell Special Symbols

Source: Internet
Author: User

* Wildcard characters
? Compared with *, to match a
# comment out, do not take effect
\ de-signifier symbol
touch \ #1. txt
ls \ #1. txt
| A pipe character throws the result of a command to the next command
$ variable prefix (when you get, use the variable, add the symbol)
; Often used in the middle of two commands such as: LS 1.txt; LS 2.txt
~ User Home Directory
& Throw a command to the background such as: Sleep &
> Redirect >> Chase-weighted redirect 2> error redirect 2>> error append redirect
< Reverse redirect (the contents of the right document are redirected to the left command, such as Wc-l < 1.txt)
[] Two command set ls [12].txt equals ls 1.txt 2.txt regular expression is often used to define the range

Small Knowledge:
(1) If you want to create a file named #1.txt, then you need to touch \ #1. txt, using the caret.

This article is from the "11165660" blog, please be sure to keep this source http://11175660.blog.51cto.com/11165660/1765599

Shell Special Symbols

Related Article

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.