What is Command, Shell and Terminal?
Commands:- They are just bunch of text but when we give commands and press enter, the meaning of these texts are interpreted by a computer program called shell.
Shell:- It is a command line interpreter. It translates the texts you enter in the command line for the computer to understand and perform tasks.
Terminal:- A terminal is a device through which one interacts with a computer. It is a program that is like a middle man between shell and you, You write commands on terminal and shell interprets it.
You → Commands → Terminal → Shell → Translates → Performs Tasks
There are many different types of shell which can interpret same commands differently. For example: Bourne shell (sh), C shell (csh), TC shell (tcsh), Korn shell (ksh), Bourne Again SHell (bash).
Bash, or the Bourne-Again Shell, is the most commonly used shell and it comes installed as default in most of the Linux OS.