What are the differences between shell, console & terminal?

Source: Internet
Author: User

Answer 1:
The shell is a typical UNIX program. It reads commands from the standard input and prints something on the standard output. This is simple and good.

The points is: In a graphical environment (like gnome or KDE) a program cannot just write text directly on the desktop. if the programs cocould, this wowould quickly become a mess and chaos. therefore you need a program that provides a space where other programs can write their text. that program also accepts keystrokes from the user and converts them into byte sequences, since this is what happens programs (command-line, text based, not GUI) CT. all this is the job of the gnome Terminal application.

So you have the shell (probably bash), and wrapped around it is the gnome terminal. to see what exactly the gnome terminal does you can run (Alt + F2) gnome-terminal, xterm and rxvt in between and see where they are different and what they have in common.

Answer 2:
In the Linux world they can all look the same from the point of view of the user at the keyboard. The differences are in how they interact with each other.

The shell is the program which actually processes commands and returns output. most shells also manage foreground and background processes, command history and command line editing. these features (and faster more) are standard in bash, the most common shell in modern Linux systems.

A terminal refers to a wrapper program which runs a shell. decades ago, this was a physical device consisting of little more than a monitor and keyboard. as Unix/Linux systems added Better multiprocessing and processing wing systems, this terminal concept was implements acted into software. now you have programs such as gnome terminal which launches a window in a gnome running wing environment which will run a shell into which you can enter commands.

The console is a special sort of terminal. historically, the console was a single keyboard and monitor plugged into a dedicated serial Console port on a computer used for direct communication at a low level with the operating system. modern Linux systems provide virtual machines les. these are accessed through key combinations (e.g. alt + F1 or CTRL + ALT + F1; the function key numbers different tables les) which are handled at low levels of the Linux operating system-this means that there is no special service which needs to be installed and configured to run. interacting with the console is also done using a shell program.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.