{"id":972,"date":"2017-03-20T10:53:10","date_gmt":"2017-03-20T05:23:10","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=972"},"modified":"2017-03-29T12:44:11","modified_gmt":"2017-03-29T07:14:11","slug":"exact-difference-terminal-shell-tty-console","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/exact-difference-terminal-shell-tty-console\/","title":{"rendered":"What is the exact difference between a &#8216;terminal&#8217;, a &#8216;shell&#8217;, a &#8216;tty&#8217; and a &#8216;console\u2018"},"content":{"rendered":"<h4 id=\"terminal\"><span style=\"color: #800000;\"><strong>Terminal:<\/strong><\/span><\/h4>\n<ul>\n<li>A physical device that was connected to a computer to give access to a shell. you would have a large mainframe computer with many \u201cdumb terminals\u201d connected to it \u2013 they had no computing abilities themselves, they just sent keystrokes to the mainframe and displayed the text that was returned.<\/li>\n<\/ul>\n<ul>\n<li><b>\u201c<\/b><b>terminal<\/b>\u201d usually refers to a\u00a0terminal emulator\u00a0program, which provides the window that displays the shell and allows you to interact with it.<\/li>\n<\/ul>\n<ul>\n<li>The word terminal can also have a more traditional meaning of a device through which one interacts with a computer, typically with a keyboard and display.<\/li>\n<\/ul>\n<ul>\n<li>A\u00a0<b>terminal<\/b>\u00a0or a\u00a0<b>console<\/b>\u00a0is a piece of hardware, using which a user can interact with a host.<\/li>\n<\/ul>\n<h4 id=\"shell\"><span style=\"color: #ff6600;\"><strong>Shell:<\/strong><\/span><\/h4>\n<ul>\n<li>The shell is a program which is used for controlling and running programs. It is often used interactively, via a terminal.<\/li>\n<\/ul>\n<ul>\n<li>The <b>shell<\/b> and the <b>terminal emulator <\/b>are two separate programs; the terminal emulator displays text from the shell (and any programs you run from the shell), and sends your typing to the shell.<\/li>\n<\/ul>\n<ul>\n<li><b>shell<\/b>\u00a0is a special program that interacts with a user through a\u00a0<b>controlling tty<\/b>\u00a0and offers, to the user, the way of launching other programs (e.g. bash, csh, tcsh).<\/li>\n<\/ul>\n<h5 id=\"ad-typebanner\">[ad type=\u201dbanner\u201d]<\/h5>\n<h4 id=\"tty\"><span style=\"color: #800080;\"><strong>TTY: \u00a0<\/strong><\/span><\/h4>\n<ul>\n<li>TTY short for <b>\u00a0<\/b><b>TeleTYpewriter<\/b>..<\/li>\n<\/ul>\n<ul>\n<li>On the computer, this terminal was presented as a \u201cTTY device\u201d.\u00a0 Linux still uses TTY (or PTY, pseudo-tty) devices through which a shell can interact with a terminal emulator or console.<\/li>\n<\/ul>\n<ul>\n<li>A\u00a0<b>terminal<\/b>\u00a0or a\u00a0<b>console<\/b>\u00a0is a piece of hardware, using which a user can interact with a host.<\/li>\n<\/ul>\n<h4 id=\"console\"><span style=\"color: #0000ff;\"><strong>Console:<\/strong><\/span><\/h4>\n<ul>\n<li>A\u00a0<b>console<\/b>\u00a0must be a piece of hardware physically connected to (or part of) the host. It has a special role in the system: it is the main point to access a system for maintenance and some special operation can be done only from a console (e.g. see\u00a0single user mode).<\/li>\n<\/ul>\n<ul>\n<li>Console,sometimes used equivalent to \u201cterminal\u201d<\/li>\n<\/ul>\n<ul>\n<li>The Linux system has several text-mode \u201cvirtual consoles\u201d, essentially built in terminal emulators that can be switched between using a key combination.<\/li>\n<\/ul>\n<ul>\n<li>Consoles 1 to 6 usually present a text login prompt; logging in will give you a shell. The familiar Linux graphical desktop runs on console 7 or 8 (depending on your Linux distribution)<\/li>\n<\/ul>\n<h5 id=\"ad-typebanner-2\">[ad type=\u201dbanner\u201d]<\/h5>\n","protected":false},"excerpt":{"rendered":"<p>Terminal: A physical device that was connected to a computer to give access to a shell. you would have a large mainframe computer with many \u201cdumb terminals\u201d connected to it \u2013 they had no computing abilities themselves, they just sent keystrokes to the mainframe and displayed the text that was returned. \u201cterminal\u201d usually refers to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1331],"tags":[1844,1845,1835,1850,1851,1846,1839,1847,1834,1841,1837,1840,1836,1848,1838,1842,1843,1849,1833],"class_list":["post-972","post","type-post","status-publish","format-standard","hentry","category-unix","tag-a-shell","tag-a-tty","tag-difference-between-console-and-terminal-in-linux","tag-how-is-sudo-interrupted-in-xterm-on-ctrl-c","tag-is-the-shell-a-frontend-to-the-terminal","tag-pseudoterminal-concept-in-linux","tag-terminal-console-for-windows","tag-terminal-vs-terminal-emulator","tag-tty-linux","tag-tty-linux-command","tag-tty-linux-tutorial","tag-tty-stands-for","tag-tty-terminal","tag-what-exactly-is-terminal-what-is-shell","tag-what-is-a-terminal-computer","tag-what-is-the-console-actually-used-for","tag-what-is-the-exact-difference-between-a-terminal","tag-what-really-is-bash-or-any-linux-shell","tag-whats-the-difference-between-the-tty-and-the-gnome-terminal"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=972"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/972\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}