Get the App
SLTechnology News&Howtos  ›  Servers  › 

Description of common symbols in Linux

Shulou Source: shulou.com Published: 2022-06-01 12:15:52 10月01日 Update

This article mainly explains "the description of common symbols in Linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn the "description of common symbols in Linux".

Wildcard characters: "*", "?"

As in DOS, we can use wildcards to obfuscate when we don't know the exact file name. "*" can represent any character of any length, "?" Represents an arbitrary character.

2. Escape character: "\"

Unlike the naming convention of DOS, the wildcard characters "*", "?" Can be used in the file name.

If the file name you want to operate contains these special symbols, we can express it with "\". Here is a short list of wildcards and regular expressions:

* match all characters

? Matches a character in a string

\ * match the "*" character

\? Match "?" Character

\) match the ")" character

Table of contents: "/", "~", ".", ".."

They respectively mean:

"/": root directory (using the path in the middle)

"~": user root directory (the directory where the user logged in)

".": current directory

"..": superior directory

IV. Background execution: "&"

Sometimes it takes a long time for a user to execute a command, which may affect doing other things. The best way is to put it in the background to execute. The program running in the background can continue to execute after the user logs out. When you want the command to be executed in the background, add "&" after the command.

5. Pipe and redirection: "|", ">", "> >", "" can output the result to a file, the original content of the file will be deleted, "> >" will append the result to the file, and the content of the original file will not be deleted. "

Tags: File character command directory symbol content background user wildcard output common representative file name pipe result guide tool method standard root directory Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information vpn Linux NVidia Apple