What is the difference between terminal and console




















It can take input and pass it on. But the Terminal isn't smart. It doesn't actually process your input, it doesn't look at your files or think. Folks in the mid 20th century would have a piece of furniture in their living room called a console or console cabinet. A Console in the context of computers is a console or cabinet with a screen and keyboard combined inside it.

But, it's effectively a Terminal. Technically the Console is the device and the Terminal is now the software program inside the Console. A shell is the program that the terminal sends user input to. The shell generates output and passes it back to the terminal for display. Here's some examples of Shells:. Here's an important point that should make more sense now that you have these terminals - Your choice of shell doesn't and shouldn't dictate your choice of terminal application.

They are full and real. WSL2 ships a real Linux kernel and runs in on Windows. Cygwin is NOT a Linux. It's a simulacrum. It's GNU utils compiled against Win It's great, but it's important for you to know what the difference is. There are a number of shells that ship with Windows. Here's a few I'm running now.

Note the "chrome" or the border and title around them? Those shells are all hosted by a the legacy Windows console you have never heard of called conhost. You can go to the command prompt, type powershell, cmd, or ubuntu and any number of shells will run.

Conhost does the work of input and output. Pseudo Terminals are terminal emulators or software interfaces that emulate terminals. They pretend to be terminals like the ones above.

If you choose a 3rd party non-built-in console applications for Windows, make sure it supports ConPTY and it'll be a better experience than some of the older consoles that use screen scraping or other hacks.

Remembering there's a lot of shells you can use in Windows, there's a lot of 3rd party consoles you can use if you don't like conhost. Because a shell isn't a terminal. Pick the one that makes you happy. Sponsor: Suffering from a lack of clarity around software bugs? Give your customers the experience they deserve and expect with error monitoring from Raygun. Installs in minutes, try it today!

A full-screen mode is an option. Attention reader! Shell : Shell stands for the command-line interpreter. A shell is a program that processes commands and outputs the results. A shell is a layer that sits on top of the kernel: 1 It interprets and processes the commands entered by the user. Unlike users, the shell has access to the kernel. Users can only gain access to the kernel by using a shell and entering commands i. System calls are used by programs to gain access to kernel functionality.

The system API is made up of all system calls. Screen and tmux , which provides a layer of isolation between a program and another terminal Ssh , which connects a terminal on one machine with programs on another machine Expect , for scripting terminal interactions 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. Console A console is generally a terminal in the physical sense that is by some definition the primary terminal directly connected to a machine.

Command line [interface] A command line is an interface where the user types a command which is expressed as a sequence of characters — typically a command name followed by some parameters and presses the Return key to execute that command. Shell A shell is the primary interface that users see when they log in, whose primary purpose is to start other programs. Input: the terminal converts keys into control sequences e. The shell converts control sequences into commands e. Line edition, input history and completion are provided by the shell.

The terminal may provide its own line edition, history and completion instead, and only send a line to the shell when it's ready to be executed.

The only common terminal that operates in this way is M-x shell in Emacs. The terminal acts on these instructions. The prompt is purely a shell concept. The shell never sees the output of the commands it runs unless redirected. Output history scrollback is purely a terminal concept. The shell may have its own internal copy-paste mechanism as well e. Job control launching programs in the background and managing them is mostly performed by the shell. Improve this answer. Pablo Bianchi 9, 3 3 gold badges 48 48 silver badges 89 89 bronze badges.

See my answer for more details. PeterCordes At this level of detail, there's no distinction. POSIX defines terminal as synonymous to terminal device , in the sense of a device file. That's the Unix meaning. It does happen to be the stuff than handles escape codes, turns keypresses into characters and draws on a screen or transmits over the network, or logs to a file, etc.

With the assumption that there's a terminal emulator, or a serial port with a terminal appliance connected to it, on one end of the terminal device that the kernel is handling. You can compile Linux without that, but not without tty. Oops, I didn't have a recent kernel source lying around.

Anyway, yeah hopefully that helps anyone trying to wrap their head around what the different pieces of the puzzle are, and how they fit together. A visual representation. Terminal Something you can sit down at, and work like a boss. Console Some hardware that does a bunch of stuff. Another example of a console, would be a video game console such as a Super Nintendo [where you can play Actraiser] Shell Basically an application for running commands. Command Line [Interface] Basically anything you input commands into.

You stole my idea - I was going to give basically the same answer. So you can have an upvote. The point being of course that while these terms are mostly synonymous these days, terms like "terminal" and "console" have their origins in older computing concepts.

Good effort. Simple and easy — A Umar Mukthar. Add a comment. From the Linux Information Project : Terminal : Technically , A terminal window, also referred to as a terminal emulator, is a text-only window in a graphical user interface GUI that emulates a console.

Console : an instrument panel containing the controls for a computer Shell :A shell is a program that provides the traditional, text-only user interface for Linux and other Unix-like operating systems Command-Line : A command line is the space to the right of the command prompt on an all-text display mode on a computer monitor usually a CRT or LCD panel in which a user enters commands and data.

Community Bot 1. What you say is actually "terminal emulator". RegisteredUser A terminal emulator is a kind of terminal. The word terminal isn't limited to physical terminals the usual word for that is console. This definition of command line is wrong. A command line isn't limited to an all-text display mode. Gilles I have grabbed it from One web-Link.

You have mentioned proper answer fine. AgentCool I don't question your ability to copy-paste. I question your choice of source. What you post is your responsibility, whether you wrote it or not.

Console is from a dictionary a flat surface that contains the controls for a machine, for a piece of electrical equipment, etc. Pithikos Pithikos 1, 2 2 gold badges 11 11 silver badges 17 17 bronze badges. What do you mean "the opposite of GUI"? I have clarified now a bit more in the answer. BeastOfCaerbannog 7, 9 9 gold badges 28 28 silver badges 52 52 bronze badges.

Console has multiple other specific meanings, so leave that out for now. Peter Cordes Peter Cordes 1, 13 13 silver badges 18 18 bronze badges. Console isn't particularly ambiguous — although it's occasionally used in the more general sense of terminal , that's pretty rare rarer than terminal being used to specifically mean a console.

If you booted with the console on a serial port, I think it would go there. Nothing else in the system needs to have a notion of there being a console tty at all except for boot-recovery stuff that starts a shell on the console TTY if the system fails to boot to multi-user mode.

Usually from initrd — Peter Cordes. I'm pretty sure Xorg would still run fine on a PC that booted with the kernel console on a serial port. And that the text-mode virtual terminals would still work. The more I consider this, the more I'm leaning towards viewing console in a kernel context as just a special terminal, selected at boot time. Linux can actually output its console messages on multiple terminals at once, if you ask it to.

Popular alternatives include zsh which emphasizes power and customizability and fish which emphasizes simplicity. Command-line shells include flow control constructs to combine commands.

In addition to typing commands at an interactive prompt, users can write scripts. Some shells that are often used for scripting but lack advanced interactive features include the Korn shell ksh and many ash variants.

In unix system administration, a user's shell is the program that is invoked when they log in. Normal user accounts have a command-line shell, but users with restricted access may have a restricted shell or some other specific command e.

The division of labor between the terminal and the shell is not completely obvious. Here are their main tasks. Another example of a console, would be a video game console such as a Super Nintendo [where you can play Actraiser]. Terminal : Technically , A terminal window, also referred to as a terminal emulator, is a text-only window in a graphical user interface GUI that emulates a console.

Shell :A shell is a program that provides the traditional, text-only user interface for Linux and other Unix-like operating systems. Command-Line : A command line is the space to the right of the command prompt on an all-text display mode on a computer monitor usually a CRT or LCD panel in which a user enters commands and data. Python Javascript Linux Cheat sheet Contact.



0コメント

  • 1000 / 1000