📜  终端、控制台、Shell 和命令行之间的区别

📅  最后修改于: 2022-05-13 01:56:11.763000             🧑  作者: Mango

终端、控制台、Shell 和命令行之间的区别

终端
终端是文本输入和输出环境。终端窗口,也称为终端模拟器,是一个纯文本窗口,它在图形用户界面 (GUI) 中模拟控制台。换句话说,我们可以从中访问用户控制台的图形用户界面应用程序。终端是允许您运行 shell 的程序。是一种具有人类可读显示的设备,它接受字符流并显示它们。只有字符正在那里。它们通常用于网络和设备调试接口。

安慰 :
控制台是一个物理终端;包含计算机控制的仪表板。控制台是一种终端。是一个窗口,您的文本模式程序在其中处于活动状态。此窗口可识别按键并了解其宽度和高度。全屏模式是一种选择。

贝壳 :
Shell 代表命令行解释器。 shell 是一个处理命令并输出结果的程序。 shell 是位于内核之上的一层:1) 它解释和处理用户输入的命令。与用户不同,shell 可以访问内核。用户只能通过使用 shell 并输入命令(即运行程序)来访问内核。程序使用系统调用来访问内核功能。系统 API 由所有系统调用组成。

命令行
命令行是全文本显示模式计算机显示器(通常是 CRT 或 LCD 面板)上命令提示符右侧的区域,用户可以在其中输入命令和数据。这是您键入命令的行。它通常用于指示您必须在操作系统提供的文本模式窗口(命令行界面)中运行某些内容。

终端、控制台、Shell 和命令行之间的区别:
下表说明了终端、控制台、Shell 和命令行之间的区别:



Sr. No.TerminalConsoleShellCommand-line
1A terminal is a text input and output environment. A physical terminal is referred to as a console.The shell is a command-line interpreter.A command line, also known as a command prompt, is a type of interface.
2A terminal is a wrapper program that runs a shell and allows us to enter commands.The console is a type of terminal. It is a window in which your text-mode programs are active.The shell is the program that actually processes commands and outputs results.A command-line interface is any type of interface that is used to enter (textual) commands. One of these is the terminal, but some programs have their own command-line interfaces.
3The terminal is a program that displays a graphical interface and allows you to interact with the shell.The console consisted of a single keyboard and monitor plugged into a dedicated serial console port on a computer for low-level direct communication with the operating system.A shell is a user interface for accessing the services of an operating system.A command-line interface (CLI) is a computer program that processes commands in the form of lines of text. The user typically interacts with the shell via a command-line interface (CLI).
4The term terminal can also refer to a device that allows users to interact with computers, typically via a keyboard and display.A console is a physical terminal that is the primary terminal that is directly connected to a machine. The console is recognized by the operating system as a (kernel-implemented) terminal.A shell is a primary interface that users see when they log in, and its primary function is to launch other programs.A command line is an interface that allows a user to type a command (which is expressed as a sequence of characters — typically a command name followed by some parameters) and then press the Return key to execute that command.
5

Some types of terminal emulators include:

  • Command prompt
  • guake
  • gnome-terminal
  • terminator
For example, Famicom, Xbox, PlayStation, Nintendo Switch, Wii, and Wii U, etc. are all examples of consoles.

Some examples of shells are:

  • Bash, fish, zsh, ksh, sh, tsch
  • Power Shell, pwsh
  • cmd, yori, 4dos, command.com

Some examples of Command-line interface are:

  • Microsoft Windows,
  • DOS Shell, and
  • Mouse Systems Power Panel.