Ubuntu Linux Special Characters Ubuntu Linux的特殊字符
Special characters, which have a special meaning to the shell.特殊字符,其中有一個特殊意義的空殼。 Avoid accidentally using them as regular characters until you understand how the shell interprets them.避免意外利用它們作為經常性字符,直到您了解如何殼解釋它們。 For example, it is best to avoid using any of the following characters in a filename (even though emacs and some other programs do) because they make the file harder to reference on the command line:舉例來說,最好是避免使用任何下列字符的文件名(即使Emacs和其他一些程序) ,因為它們使檔案更難提到的命令行:
& ; | * ? & ; | * ? ' " ‘ [ ] ( ) $ < > { } # / \ ! ~ ' “ ' [ ] ( ) $ ” “ ( ) # / \ ! 〜
Whitespace.空白。 Although not considered special characters, RETURN, SPACE, and TAB also have special meanings to the shell.雖然不被視為特殊字符,返回,空間, TAB鍵也有特殊意義的空殼。 RETURN usually ends a command line and initiates execution of a command.通常結束返回的命令行並開始執行的命令。 The SPACE and TAB characters separate elements on the command line and are collectively known as whitespace or blanks.空間和製表符單獨的內容在命令行,並統稱為空白或空白。
Quoting special characters.競標特殊字符。 If you need to use a character that has a special meaning to the shell as a regular character, you can quote (or escape) it.如果你需要使用的字符具有特殊意義的外殼作為經常性字符,你可以報價(或逃避)它。 When you quote a special character, you keep the shell from giving it special meaning.當您報價具有特殊性質,你隨時殼從給它特殊的意義。 The shell treats a quoted special character as a regular character.殼對待一援引特殊字符作為一個經常性的特點。 However, a slash (/) is always a separator in a pathname, even when you quote it.然而,斜線( / )始終是一個分離器的路徑,甚至當你引用它。
Backslash.反斜線。 To quote a character, precede it with a backslash (\).引用性質,先用反斜杠( \ ) 。 When two or more special characters appear together, you must precede each with a backslash (for example, you would enter ** as \*\*).當兩個或兩個以上的特殊字符一起出現,你必須先每一個反斜杠(例如,您將進入**的\ * \ * ) 。 You can quote a backslash just as you would quote any other special character—by preceding it with a backslash ( \\).您可以舉一個反斜杠就像你將引用任何其他特殊性質,它的前面加上一個反斜線( \ \ ) 。
Single quotation marks.雙引號。 Another way of quoting special characters is to enclose them between single quotation marks: '**'.另一種方式引述特殊字符是附上他們之間的單引號: '**'. You can quote many special and regular characters between a pair of single quotation marks: 'This is a special character: >'.你可以列舉許多特殊的字符和定期之間的一對單引號: '這是一個特殊的性質: > “ 。 The regular characters are interpreted as usual, and the shell also interprets the special characters as regular characters.經常字符解釋像往常一樣,和外殼還解釋特殊字符作為經常性字符。
The only way to quote the erase character (CONTROL-H), the line kill character (CONTROL-U), and other control characters (try CONTROL-M) is by preceding each with a CONTROL-V.唯一的辦法引用刪除字符(控制高) ,該行殺死字符(控制電壓) ,以及其他控制字符(試圖控制M )是前面每一個控制電壓。 Single quotation marks and backslashes do not work.單引號和反斜線不工作。 Try the following:嘗試以下步驟:
$ echo 'xxxxxxCONTROL-U' $迴聲' xxxxxxCONTROL大學'
$ echo xxxxxxCONTROL-V CONTROL-U $迴聲xxxxxxCONTROL電壓控制電壓
Source of Information : A Practical Guide to Ubuntu Linux 信息來源:實用指南Ubuntu Linux操作系統
Written by magakos. 撰稿magakos 。 Read more great feeds at is source 閱讀更多的是供稿源 WEBSITE 網站
no comments 沒有評論 . 。
Read more articles on 閱讀更多文章 Ubuntu Linux Ubuntu Linux操作系統 and 和 otherSoftware otherSoftware . 。
- [+] Digg [ + ] Digg的 : Feature this article :特徵本文
- [+] Del.icio.us [ + ] Del.icio.us : Bookmark this article : 06條
- [+] Furl [ + ]卷 : Bookmark this article : 06條















