Sunday, May 12, 2024
33
rated 0 times [  33] [ 0]  / answers: 1 / hits: 31037  / 3 Years ago, wed, may 12, 2021, 6:55:30

I know this might sound foolish but I just wanted to know if there is really a difference between the two words used in the Linux world. I do know that the Shell is a Command Line Interface and has many variants like Bash, Korn, etc. And I also know that a Ctrl+Alt+T launches a terminal on Ubuntu. I just want to connect these two dots.



Does it mean the terminal is the window that opens up and the shell is the program that runs behind to interpret the commands typed in the window? Or are they same wherein terminal is a generic term used to abstract the concepts of Shell,etc?



What is it that exactly differentiates the two words?


More From » command-line

 Answers
7

The terminal emulator (often just called terminal) is "just the window", yes. It runs a text based program, which by default is your login shell (which is bash in Ubuntu). When you type characters in the window, the terminal draws these characters in the window in addition to sending it to the shell's (or other program's) stdin. The characters the shell outputs to stdout and stderr get sent to the terminal, which in turn draws these characters in the window.



So yes, the shell and the terminal emulator are completely separate programs, and either can be used without the other.


[#39954] Thursday, May 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
socelebrate

Total Points: 274
Total Questions: 123
Total Answers: 124

Location: Saint Helena
Member since Mon, Jan 16, 2023
1 Year ago
;