命令列前面的文字叫什麼?

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。...

命令列前面的文字叫什麼? Frequently asking questi*** about the **allest and most subtle elements of your computing experience can yield interesting insights into computers and their history. Today we look at the little block of text that sits at the front of the command line.

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者讀者Erty很好奇:

Is there a name for the text that shows up at the front of each command at the Command Line Interface. For example, in Ubuntu when I start up a terminal, it says:

username@computer:~$ And in Windows:

C:\Users\Username> Is there a formal way to refer to that text?

Thanks in advance!

那一點點叫什麼?

答案

超級使用者貢獻者Barlop提供了一些見解:

It’s called ‘the prompt’

In linux, you could be more specific and say “the bash prompt” in the case of the bash shell, or for the KSH shell, The KSH (korn shell) prompt etc. In Windows you can change the prompt with the PROMPT command.

In windows, you could be more specific and say “the C prompt”, and the prompt in windows is most famously C:\> or C:\something…> so you can see how it gets that name. A techie might’ve frustratingly said to a user on the phone “Do you get the C prompt?”. While saying it as C prompt, some write it as The C:\ prompt or The C: prompt. One wouldn’t call it that when it was A: or D: (which you get when you boot DOS off floppy or cd drive, or you change to one those drives from the command prompt) and nobody talks of the A prompt or the D prompt, only the famous one, the C prompt.

如果所有這些關於提示的討論都讓你處於命令列的狀態,那麼請檢視以下一些如何在提示下極客化生活的文章:

  • 如何個性化Windows命令提示符
  • 5個你可能不知道的Windows命令提示符技巧
  • 初學者極客:如何開始使用Linux終端
  • 使用以下8個技巧成為Linux終端的超級使用者
  • 如何從Linux終端管理程序:您需要知道的10個命令

有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

 

 

  • 發表於 2021-04-11 20:12
  • 閱讀 ( 56 )
  • 分類:網際網路

你可能感興趣的文章

如何在沒有工作管理員的情況下強制關閉程式

... 要強制關閉沒有工作管理員的程式,可以使用taskkill命令。通常,您會在命令提示符下輸入此命令以終止特定程序。然而,每次程式停止響應時開啟命令列視窗是很笨拙的,每次輸入命令都是一種浪費。使用快捷方式可以更...

  • 發佈於 2021-03-18 04:22
  • 閲讀 ( 46 )

如何定製mac終端並使其更有用

終端應用程式是您在macOS中進入命令列的閘道器。它提供了一個shell或命令直譯器的介面,它接收命令並呼叫其他人來執行例程和複雜任務。 ...

  • 發佈於 2021-03-21 20:13
  • 閲讀 ( 47 )

11個奇怪的窗戶蟲子和復活節彩蛋

... 2星球大戰命令碼 ...

  • 發佈於 2021-03-25 13:30
  • 閲讀 ( 57 )

adobe indesign備忘單:windows和mac的所有快捷方式

...Win)Shortcut (Mac)Action邏輯檔案一層樓一層樓開啟幫助Ctrl+O鍵命令列+O正常開放Ctrl+Alt+O組合鍵命令+選項+O在Adobe Bridge中開啟Ctrl+W鍵命令列+W關閉Ctrl+S鍵命令列+S儲存Ctrl+Shift+S組合鍵Cmd+Shift+S另存為Ctrl+Alt+S組合鍵命令+選項+S儲存副本Ctrl+...

  • 發佈於 2021-03-27 04:23
  • 閲讀 ( 59 )

保持程式碼整潔美觀

...式碼,以一致的方式格式化。Prettier集成了文字編輯器、命令列工具和線上演示。 ...

  • 發佈於 2021-03-28 23:47
  • 閲讀 ( 52 )

如何將python新增到windows path變數

...器、啟動虛擬程式設計環境或從終端執行pip install之類的命令。 ...

  • 發佈於 2021-03-30 03:11
  • 閲讀 ( 84 )

如何在linux上建立手冊頁

... 在舊的Unix笑話中有一個核心真理,“你需要知道的唯一命令是man。”手冊頁包含了豐富的知識,當你想了解一個命令時,應該首先開啟手冊頁。 為您編寫的實用程式或命令提供一個手冊頁,可以將其從一段有用的程式碼提升到...

  • 發佈於 2021-04-01 21:08
  • 閲讀 ( 44 )

如何使用pandoc在linux命令列上轉換檔案

...這些操作。 安裝pandoc 要在Ubuntu上安裝pandoc,請使用以下命令: sudo apt-get install pandoc 在Fedora上,您需要的命令如下: sudo dnf install pandoc 在Manjaro上,您需要鍵入: sudo pacman -Syu pandoc 您可以使用--version選項檢查已安裝的版本: p...

  • 發佈於 2021-04-02 00:59
  • 閲讀 ( 52 )

如何在linux上使用sed命令

這聽起來很瘋狂,但是Linux sed命令是一個沒有介面的文字編輯器。您可以從命令列使用它來操作檔案和流中的文字。我們將向你展示如何利用它的力量。 sed的力量 sed命令有點像國際象棋:學習基礎知識需要一個小時,掌握它...

  • 發佈於 2021-04-02 08:03
  • 閲讀 ( 43 )

如何使用linux的man命令:隱藏的祕密和基礎知識

...於Linux的一切都在它的手冊頁中。例如,您可以搜尋一個命令來完成一個任務,即使您不知道它叫什麼。但是你怎麼能找到手冊頁呢?這裡有一些技巧。 linux的內建手冊 有一個古老的(來自Unix黃金時代)Linux笑話說,您需要知...

  • 發佈於 2021-04-02 10:46
  • 閲讀 ( 54 )
zyn86126
zyn86126

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦