What are the differences between shell , console & terminal?

答案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
could, this would 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 many programs (command-line,
text based, not GUI) expect. 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.

答案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
many 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
windowing systems, this terminal concept was abstracted into software.
Now you have programs such as Gnome Terminal which launches a window in a
Gnome windowing 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
consoles. These are accessed through key combinations (e.g. Alt+F1 or
Ctrl+Alt+F1; the function key numbers different consoles) 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.

What are the differences between shell , console & terminal?

时间: 2024-08-29 03:10:05

What are the differences between shell , console & terminal?的相关文章

linux - console/terminal/virtual console/pseudo terminal ...

http://en.wikipedia.org/wiki/System_console System console Knoppix system console showing the boot process The system console, computer console, root console, operator's console, or simply console is the text entry and display device for system admin

terminal(终端),shell,tty,console(控制台)区别

控制台,终端,虚拟终端,tty,shell等概念的区别 What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'? A terminal is at the end of an electric wire, a shell is the home of a turtle, tty is a strange abbreviation and a console is a kind of

Hbase的一些简单shell命令

进入hbase shell console$HBASE_HOME/bin/hbase shell如果有kerberos认证,需要事先使用相应的keytab进行一下认证(使用kinit命令),认证成功之后再使用hbase shell进入可以使用whoami命令可查看当前用户 hbase(main)> whoami 表的管理1)查看有哪些表 hbase(main)> list 2)创建表 # 语法:create <table>, {NAME => <family>,

HBase介绍(4)---常用shell命令

进入hbase shell console$HBASE_HOME/bin/hbase shell如果有kerberos认证,需要事先使用相应的keytab进行一下认证(使用kinit命令),认证成功之后再使用hbase shell进入可以使用whoami命令可查看当前用户 hbase(main)> whoami 表的管理1)查看有哪些表 hbase(main)> list 2)创建表 # 语法:create <table>, {NAME => <family>,

HBase shell 命令。

HBase shell 命令. 进入hbase shell console$HBASE_HOME/bin/hbase shell如果有kerberos认证,需要事先使用相应的keytab进行一下认证(使用kinit命令),认证成功之后再使用hbase shell进入可以使用whoami命令可查看当前用户 hbase(main)> whoami 表的管理1)查看有哪些表 hbase(main)> list 2)创建表 # 语法:create <table>, {NAME =>

customize shell prompt

想必在命令行模式用久了,都看厌了那个单调又丑的提示符,个人认为还占了些位,要是命令长的话还会断行. 想改成 cd ~/ touch .bash_profile vim .bash_profile osx环境下操作的,关键语法 \[颜色\]prompt参数\[$reset\] 例如:\[$red\]\t\[$reset\] reset=$(tput sgr0) green=$(tput setaf 2) yellow=$(tput setaf 3) blue=$(tput setaf 4) mag

HBase 常用Shell命令

转自:http://www.cnblogs.com/nexiyi/p/hbase_shell.html 两个月前使用过hbase,现在最基本的命令都淡忘了,留一个备查~ 进入hbase shell console$HBASE_HOME/bin/hbase shell如果有kerberos认证,需要事先使用相应的keytab进行一下认证(使用kinit命令),认证成功之后再使用hbase shell进入可以使用whoami命令可查看当前用户 hbase(main)> whoami 表的管理1)查看

Hbase shell操作总结(1)

转:http://www.cnblogs.com/nexiyi/p/hbase_shell.html 进入hbase shell console$HBASE_HOME/bin/hbase shell如果有kerberos认证,需要事先使用相应的keytab进行一下认证(使用kinit命令),认证成功之后再使用hbase shell进入可以使用whoami命令可查看当前用户 hbase(main)> whoami 表的管理1)查看有哪些表 hbase(main)> list 2)创建表 # 语法

Hadoop集群(第13期)_HBase 常用Shell命令

进入hbase shell console$HBASE_HOME/bin/hbase shell如果有kerberos认证,需要事先使用相应的keytab进行一下认证(使用kinit命令),认证成功之后再使用hbase shell进入可以使用whoami命令可查看当前用户 hbase(main)> whoami 表的管理1)查看有哪些表 hbase(main)> list 2)创建表 # 语法:create <table>, {NAME => <family>,