Command-line Interface (CLI), Terminal, and Shell

本文主要介绍了 Command-line Interface (CLI), Terminal, and Shell 的基本概念和区别。

基本名词解释

名词 翻译 解释
Command-line interface 命令行界面 Command-line interface - Wikipedia
Command line 命令行 Command-line interface - Wikipedia
Command prompt 命令提示符 Command-line interface - Wikipedia
Command-line interpreter 命令行解释器 List of command-line interpreters - Wikipedia
Shell Shell (computing) - Wikipedia
Shell script Shell 脚本 Shell script - Wikipedia
Terminal (emulator) 终端 Terminal emulator - Wikipedia
Console 控制台 System console - Wikipedia

逻辑链

  • User
  • Command-line interfence (Provided by Terminal or Terminal emulator)
  • Command-line interpreter (Linux: sh class like bash, Windows: cmd or powershell or pwsh)
  • Computer systems

Command-line Interface (CLI)

The command-line interface evolved from a form of communication conducted by people over teleprinter (TTY) machines. Sometimes these involved sending an order or a confirmation using telex. Early computer systems often used teleprinter as the means of interaction with an operator.

The mechanical teleprinter was replaced by a “glass tty”, a keyboard and screen emulating the teleprinter. “Smart” terminals permitted additional functions, such as cursor movement over the entire screen, or local editing of data on the terminal for transmission to the computer. As the microcomputer revolution replaced the traditional – minicomputer + terminals – time sharing architecture, hardware terminals were replaced by terminal emulators — PC software that interpreted terminal signals sent through the PC’s serial ports. These were typically used to interface an organization’s new PC’s with their existing minior mainframe computers, or to connect PC to PC. Some of these PCs were running Bulletin Board System software. 来源

Operating system (OS) command-line interfaces are usually distinct programs supplied with the operating system. A program that implements such a text interface is often called a command-line interpreter, command processor or shell. 来源

Command-line Interpreter

In computing, a command-line interpreter, or command language interpreter, is a blanket term for a certain class of programs designed to read lines of text entered by a user, thus implementing a command-line interface. 来源

Terminal (emulator)

A terminal emulator, or terminal application, is a computer program that emulates a video terminal within some other display architecture. Though typically synonymous with a shell or text terminal, the term terminal covers all remote terminals, including graphical interfaces. A terminal emulator inside a graphical user interface is often called a terminal window.

A terminal window allows the user access to a text terminal and all its applications such as command-line interfaces (CLI) and text user interface (TUI) applications. 来源

Computer terminal - Wikipedia

Console

One meaning of system console, computer console, root console, operator’s console, or simply console is the text entry and display device for system administration messages, particularly those from the BIOS or boot loader, the kernel, from the init system and from the system logger. It is a physical device consisting of a keyboard and a screen, and traditionally is a text terminal, but may also be a graphical terminal. System consoles are generalized to computer terminals, which are abstracted respectively by virtual consoles and terminal emulators. 来源

console is generally a terminal in the physical sense that is by some definition the primary terminal directly connected to a machine. The console appears to the operating system as a (kernel-implemented) terminals. 来源

Shell

In computing, a shell is a computer program that exposes an operating system’s services to a human user or other programs. In general, operating system shells use either a command-line interface (CLI) or graphical user interface (GUI), depending on a computer’s role and particular operation. It is named a shell because it is the outermost layer around the operating system. 来源

The shell is the name of the program that runs in the terminal, giving you a command prompt, popular ones are sh, bash, zsh, fish, ash, csh (all end in sh). The Shell is a program which processes commands and returns output, like Bash in Linux. 来源

Shells

Shells Comparison

综合比较

Command-line Interface (CLI), Terminal, and Shell

https://latexalpha.github.io/555a61b94d9d/

作者

Shangyu ZHAO

发布于

2024-01-07

更新于

2024-04-19

许可协议