whatis shell

Shell

Also known as: command-line interpreter

The program that reads the commands you type, expands variables and wildcards, and launches other programs. Bash, zsh, and fish are shells.

What Is a Shell in Linux?

The shell sits between you and the kernel. It parses your input, expands $VARIABLES, * globs, and ~, sets up pipes and redirection, and then starts the requested programs as child processes. It is also a full programming language for scripts.

The shell is not the same thing as the terminal. The terminal emulator is the window that displays text; the shell is the program running inside it. Your login shell is stored in /etc/passwd and printed by echo $SHELL.

Example

echo $SHELL
# /bin/bash