Terminal (terminal), tty, shell, console (console), the differences and relations between bash

1, the terminal (terminal)

Terminal (termimal) = tty (Teletypewriter, teleprinter), environmental role is to provide input and output of a command using the key combination ctrl + alt + T is open at a terminal linux, and tty terminal may be considered synonymous.

2、shell

A shell is a command-line interpreter, is a shell linux kernel is responsible for interaction with the outside world linux kernel. Receiving a user command shell or other applications, which are then converted into the command language and the kernel can be appreciated to the kernel, the kernel will perform the command completes or the results returned to the user application. When you open a terminal, and the terminal operating system will associate the shell, when we enter the command in the terminal, it is responsible for interpreting a command shell.

3、console

Usually there will be a panel on the appearance of early computer development, computer panel contains a lot of buttons and lights, can be managed through the bottom panel of the computer, or may be learned by the computer operating status indicator on the panel called console. In modern computer, when the computer is turned on (such as Ubuntu) printed on the screen the number of log information, but before the system startup is complete, terminal can not connect to the host, in order to record important log host (such as switch log important log application), system on more than one device named console, log information is displayed on the console. A computer has only one console, but can have multiple terminal. For example, an area usually has some buttons on the TV, such as start, adjust volume, etc., can be used as the Console region, and this region is only on a television, remote control can likened to terminal, terminal can be more.

4、bash

On linux system may contain a number of different shell (you can use the command  cat / etc / shells View), more common are the Bourne shell (sh), C shell (csh) and Korn shell (ksh), three kinds of shell have their the advantages and disadvantages. Bourne shell author is Steven Bourne, it was originally used shell UNIX and can be used on every UNIX. The full name is called bash Bourne Again shell, bash can be seen from the name is an extension of the Bourne shell, bash is fully backwards-compatible with the Bourne shell, and many of the features and enhancements based on the Bourne shell, such as command completion, command editing and command history list and other features, it also contains a lot of C shell and the Korn shell's advantages, there are flexible and powerful programming interface, while there are very friendly user interface. All in all, bash is a shell, and is enhanced shell.

Guess you like

Origin www.cnblogs.com/jfdwd/p/11070407.html