输入到终端的文本片段的正式名称是什么 运行 东西?

What are the formal names of the pieces of text input to a terminal to run something?

我正在尝试了解 terminal/command 行中组成 运行 内容的文本片段的正式名称。举个例子:

npm install lodash --save

如果一一分解,npminstalllodash--save分别叫什么名字?正在考虑以下内容,但不确定并且很想知道。还想知道你会怎么称呼整段文字。

  • npm 是程序。

  • 安装是命令。

  • lodash 是包

  • --保存是选项。

由于结构差异很大 "applications"/"programs" 并没有真正正式的名称,并且可以设计它们的参数。

例如,如果您执行 man man,您将看到用于描述其他进程的 man 程序的参考手册。在此手册页中,您会看到它使用了一些常见的描述性术语,例如 "process" 和 "arguments",但除此之外,所使用的术语通常特定于流程本身的设计。

举个例子,您会注意到在描述的第一行中对 "program, utility, or function" 的引用指的是 "command" 是 运行:

DESCRIPTION: man is the system's manual pager. Each page argument given to man is normally the name of a program, utility or function. The manual page associated with each of these arguments is then found and displayed. A section, if provided, will direct man to look only in that section of the manual. The default action is to search in all of the available sections following a pre-defined order ("1 n l 8 3 2 3posix 3pm 3perl 3am 5 4 9 6 7" by default, unless overridden by the SECTION directive in /etc/manpath.config), and to show only the first page found, even if page exists in several sections.