Repaso
EspaƱol
Cloud & DevOpsFoundationsOPS-76

What is a terminal (command line) and what is a shell?

Options

  1. The terminal is a text window; the shell (Bash, Zsh) interprets commands (Correct option)
  2. A terminal is a physical keyboard; a shell is its protective cover
  3. A terminal is a web browser; a shell is a saved bookmark
  4. A terminal is a database client; a shell is a stored query

Answer

The terminal is a text window where you type commands; the shell (Bash, Zsh, PowerShell) is the program that interprets them

Why

Most developer tools (git, mvn, docker, kubectl) are used from the terminal, because commands can be repeated, scripted and automated.

Basic commands in Linux/macOS: pwd (where am I), ls (list files), cd folder (enter a folder), cat file (show a file).

Don't memorize everything: learn the commands you use daily.

pwd            # print current folder
ls             # list files
cd my-project  # enter a folder
git status     # a tool run from the shell

Remember

Terminal = window. Shell = interpreter of commands.

Key terms

Practice this question in Repaso