Linux for Developers Course
Linux for Developers
/
Beginner

Shell & Terminal

Definition

The Terminal is the visual window where you type. The Shell is the underlying program (like Bash or Zsh) that reads what you typed, interprets it, and tells the OS to execute it.

Explain Like I'm New

The Terminal is the physical steering wheel. The Shell is the mechanical steering column that connects the wheel to the car's engine.

Real World Example

You open the Terminal app. You type `ls`. The Bash Shell reads the text 'ls', figures out that it means 'list files', and asks the Kernel to fetch the file names and print them back to the screen.

Common Use Cases

  • •Executing commands
  • •Scripting automation

Interview Questions

basic

  • What is the most common default Shell used in almost all Linux systems?

intermediate

  • If you change your Shell from Bash to Zsh, do you have to get a new Terminal application?

Flash Cards

Question

Most common Shell?

Click to reveal answer
Answer

Bash (Bourne Again SHell).

Question

New Terminal for Zsh?

Click to reveal answer
Answer

No. The Terminal is just a text window. It can run any Shell inside it. You can switch the engine (Shell) without changing the steering wheel (Terminal).