More Terminal stuff.

More Terminal stuff. April 20, 2026 | Categories: Artificial Intelligence

Terminals and Shells

In my previous post I looked at the history of the Terminal. Today let's dive into the world of terminals and shells, without getting too technical.

What is a Terminal?

Imagine you're sitting in front of an old-fashioned typewriter machine. You type out some text on the keyboard, and the words appear on a paper roll as you go. That's basically what a terminal does, but instead of typing on a piece of paper, it interacts with your computer.

A terminal is a program that allows you to input commands (like you would type) and see the output (like the text on the paper roll). When you open a terminal, you're essentially opening a window into your computer's brain, where you can tell it what to do and get results back.

What is a Shell?

Now, imagine that typewriter machine has a special set of instructions built-in, like "Print this sentence" or "Write the date". That's kind of like what a shell does. A shell (short for "shell script") is a program that runs inside the terminal and understands what you're telling it to do.

Think of the shell as an interpreter, taking your typed commands and figuring out what actions to take. It's like having a personal assistant who says, "Ah, you want me to list all the files in this directory? Okay, let me do that for you!"

How Do Terminal and Shell Work Together?

When you open a terminal, it starts up a shell program (like Bash or Zsh) by default. This shell is responsible for:

  1. Reading your input: When you type something into the terminal, the shell reads what you've written.

  2. Understanding what you mean: The shell uses its built-in knowledge and rules to figure out what action you're trying to perform (e.g., "ls" means list files).

  3. Executing the command: If the shell recognizes the command, it executes it, using various tools and utilities installed on your computer.

  4. Displaying the output: The shell shows you the result of the command in the terminal window.

Here's an example:

You type ls (list files) into the terminal. The shell reads "ls" and says, "Ah, I know what that means! Let me list all the files in this directory."

The shell executes the "ls" command by using a built-in utility to scan the current directory for files. The shell displays the list of files in the terminal window.

Benefits of Using a Terminal and Shell

Working with terminals and shells offers many benefits:

So, the terminal and shell work together to provide a powerful interface for interacting with your computer. The shell is like an intelligent assistant that understands what you're trying to do and executes the commands accordingly. With customization options available, you can tailor your shell experience to fit your needs and improve your productivity.

Now let's explore the various shells available on Windows, macOS, and Linux:

Windows:

macOS:

Linux:

My Recommendation.

We learn best when we break things and then have to fix them. It doesn’t really matter which terminal or shell you use. Just start where you are, and follow a few youtube tutorials or other on-line projects. If you get stuck there are many free online AIs which will help and explain how to unstick yourself.

Leave a comment:

Comments: