命令行前面的文本叫什么?

今天的问答环节是由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
  • 阅读 ( 224 )
  • 分类:互联网

你可能感兴趣的文章

macports为您的mac带来了最好的开源软件

... 然后导航到应用程序的目录并发出“makeinstall”命令。makefile从头开始构建应用程序:下载源代码,编译并配置它。下图显示了KDE的Amarok音乐播放器端口的内容。您甚至可以使用“makeworld”命令从源代码重新构建整个系...

  • 发布于 2021-03-13 05:02
  • 阅读 ( 344 )

如何在没有任务管理器的情况下强制关闭程序

... 要强制关闭没有任务管理器的程序,可以使用taskkill命令。通常,您会在命令提示符下输入此命令以终止特定进程。然而,每次程序停止响应时打开命令行窗口是很笨拙的,每次输入命令都是一种浪费。使用快捷方式可以更...

  • 发布于 2021-03-18 04:22
  • 阅读 ( 274 )

如何让任何应用程序在android上使用语音命令

如果你可以用你的声音命令任何应用程序呢? ...

  • 发布于 2021-03-25 23:02
  • 阅读 ( 275 )

如何在Windows10中启用内置的自动更正

...indows脚本工具,可以用于各种用途。例如,您可以将系统命令分配给键盘快捷键、展开文本以键入包含几个字符的大型代码段、重新分配键盘键等等。 ...

  • 发布于 2021-03-30 18:14
  • 阅读 ( 256 )

如何在windows命令行上转义文件路径中的空格

命令行环境(如Windows命令提示符和PowerShell)使用空格分隔命令和参数,但文件名和文件夹名也可以包含空格。要指定一个文件路径,其中有一个空格,您需要“转义”它。 命令行101:为什么要逃出空格 “转义”字符会改变...

  • 发布于 2021-04-01 11:39
  • 阅读 ( 575 )

如何使用tesseract从linux命令行执行ocr

您可以使用Tesseract OCR引擎在Linux命令行上从图像中提取文本。它快速、准确,可以使用大约100种语言。下面是如何使用它。 光学字符识别 光学字符识别(OCR)是一种在图像中观察和查找单词,然后将其提取为可编辑文本的能...

  • 发布于 2021-04-01 21:39
  • 阅读 ( 308 )

如何在linux上使用sed命令

这听起来很疯狂,但是Linux sed命令是一个没有界面的文本编辑器。您可以从命令行使用它来操作文件和流中的文本。我们将向你展示如何利用它的力量。 sed的力量 sed命令有点像国际象棋:学习基础知识需要一个小时,掌握它...

  • 发布于 2021-04-02 08:03
  • 阅读 ( 153 )

如何在linux上使用fold命令

linuxfold命令带来了难以控制的输出。通过控制输出的宽度来读取大量文本、无穷无尽的字符串和未格式化的流。学习如何。 linux终端中文本行的工作原理 Linux战斗的第一条规则:了解你的敌人。让我们来定义它。一行文字到底...

  • 发布于 2021-04-02 16:13
  • 阅读 ( 184 )

如何在linux上使用echo命令

echo命令非常适合将格式化文本写入终端窗口。它不一定是静态文本。它可以包括shell变量、文件名和目录。您还可以重定向echo以创建文本文件和日志文件。按照这个简单的指南来了解如何。 回声重复你让它重复的东西 宙斯喜...

  • 发布于 2021-04-03 00:31
  • 阅读 ( 177 )

bash需要知道的15个特殊字符

...p;gt;)是至关重要的。我们将帮助您解开这些神秘的Linux命令序列,成为象形文字的英雄。 什么是特殊字符(special characters)? bashshell以两种不同的方式处理一组字符。当您在shell中键入它们时,它们充当指令或命令,并告诉shel...

  • 发布于 2021-04-03 03:58
  • 阅读 ( 215 )
zyn86126
zyn86126

0 篇文章

相关推荐