Getting Comfortable with the Linux Terminal and Shell Basics

Getting Comfortable with the Linux Terminal and Shell Basics

If you’re new to Linux and someone tells you, “Just run it in the terminal,” it can feel like being dropped into an airplane cockpit.

This hits a lot of people: WordPress admins on VPS hosting, small business owners on cloud servers, and devs who’ve only ever clicked buttons in a GUI.

Let’s make the Linux terminal less scary and more like a power tool you actually know how to hold.

I’ll walk you through what the terminal really is, what a shell is, and what that weird command prompt line means — all using the basics from the source material.


Understand What a Terminal Emulator Actually Is

First thing: on most modern systems you’re not using a “real” hardware terminal. You’re using a terminal emulator.

A terminal emulator is just a normal program that lets you use the Linux terminal inside a graphical environment.

Most of us are on an OS with a graphical user interface (GUI), so if you’re working with Linux servers from your laptop or desktop, you’ll almost always be using a terminal emulator.

Here are some common free options by operating system:

  • macOS: Terminal (default), iTerm2
  • Windows: ConEmu, Windows Terminal, PuTTY
  • Linux: Gnome Terminal, Konsole, XTerm

Modern terminal emulators usually support:

  • Tabbed windows – so you can have multiple sessions in one window
  • Text highlighting – so you can select, copy, and sometimes search text

Nothing in this list is “right or wrong.” Use whatever you already have, or start with the default for your OS. You can always switch later.


Step 1: Open a Terminal Emulator on Your System

Let’s get to the part where you actually see the thing.

Since the source only gives us examples of emulators, here’s how to find them in general terms:

  1. On macOS
  2. Look for an app named “Terminal”.
  3. If you installed iTerm2, that’s another option.
  4. On Windows
  5. Look for “Windows Terminal”, “ConEmu”, or “PuTTY” if you already installed them.
  6. On Linux desktops
  7. Look for “Gnome Terminal”, “Konsole”, or “XTerm” in your applications menu.

Once you open it, you’re in a terminal emulator — but you’re also immediately using something else: the shell.


Step 2: Know What the Shell Actually Does

When the terminal window opens, it connects you to a shell.

The shell is a command-line interface. It reads what you type, interprets it, and tells the operating system what to do with it.

The shell can:

  • Interpret commands you type directly
  • Run script files
  • Handle input and output redirection
  • Work with variables
  • Do condition-testing and more

There are several popular shells on Linux systems. Some examples mentioned in the source:

  • Bourne-Again shell (bash)
  • Z shell (zsh)

Each shell has its own features and small differences in how they interpret commands.

The tutorial that this is based on uses bash (Bourne-Again shell), and that shell is the default on most popular Linux distributions, including:

  • Ubuntu
  • Fedora
  • RHEL (Red Hat Enterprise Linux)

So if you’re on a typical Linux server or VPS, there’s a good chance you’re already using bash without doing anything.

You don’t need to change shells or tweak settings to start. Just know: when you type a command and hit Enter, it’s the shell doing the work of interpreting it.


Step 3: Read the Command Prompt Without Panicking

After you log in to a Linux server, you usually see two things in order:

  1. MOTD (Message of the Day)
    This is an informational message. It might show:
  2. Some general info
  3. The Linux distribution version your server is running
  4. The command prompt (shell prompt)
    This is the line where you can actually type commands.

The prompt itself can be customized, but the source gives us an example from default Ubuntu 20.04.

While the full prompt example is cut off in the source, it does break down at least part of it:

  • sammy : the username of the current user
  • webapp... : this is started in the source but not fully shown, so we only know sammy for sure

What you need to remember is: the prompt usually includes who you are (username) and sometimes where you are (like hostname or directory).

So if you see something like:

sammy@something:~$

You can safely say that sammy is the current logged-in user.

You don’t need to know all the details of prompt customization at this stage. Just recognize:

  • “This line is the prompt.”
  • “I can type commands after this.”

Step 4: Safely Start Typing and Running Simple Commands

We’re limited by the source (no specific commands were listed), but the basic flow is always the same when you run commands in the shell:

  1. Wait for the command prompt to appear.
    That means the shell is ready.
  2. Type a command.
    Keep it simple when you’re new. For your own safety, avoid commands you don’t fully understand, especially anything that claims to “clean up” or “optimize” your server.
  3. Press Enter.
    The shell interprets your command and tells the OS what to do with it.
  4. Watch the output.
    You’ll usually see text printed back. This could be:
  5. The result of your command
  6. An error message
  7. Wait for the prompt to return.
    When the prompt comes back, the shell is ready for another command.

As a general safety rule, especially on live servers:

  • Only run commands you understand or fully trust.
  • If you’re following a guide, make sure it matches your Linux distribution (Ubuntu vs Fedora vs RHEL can differ).
  • If possible, practice new commands on a test server or staging environment first.

Even though the source doesn’t list any commands, this pattern — prompt → command → output → prompt — is the core of working in the terminal.


Step 5: Know the Relationship Between Terminal, Shell, and Commands

To avoid confusion, it helps to mentally separate the pieces you’re touching.

From the source, we can clearly map things like this:

  • Terminal emulator
  • Example: Gnome Terminal, Konsole, XTerm, iTerm2, Terminal, ConEmu, Windows Terminal, PuTTY
  • Job: Provides a window in your GUI that behaves like a terminal
  • Shell
  • Example: bash, zsh
  • Job: Interprets what you type and talks to the operating system
  • Command prompt
  • Example includes sammy as the username in an Ubuntu 20.04 prompt
  • Job: Shows you who you are and that the shell is ready
  • Commands
  • Not listed in detail in the source, but they’re what you type after the prompt
  • Job: Do the actual work (list files, edit configs, restart services, etc.)

Thinking this way helps when troubleshooting:

  • If the window isn’t opening, that’s a terminal emulator problem.
  • If the prompt doesn’t appear or behaves oddly, that’s usually a shell problem or configuration.
  • If a command fails, that’s usually about the command itself or permissions.

You don’t have to become a shell wizard on day one. Just recognizing which layer you’re looking at already makes debugging much easier.


Step 6: Basic Safety Mindset Before You Go Deeper

Even though the source doesn’t list specific commands, it does put us squarely in the server world: logging in, seeing MOTD, getting a prompt on something like Ubuntu, Fedora, or RHEL.

That’s usually a production or at least important system, so a few general safety habits help:

  1. Treat the terminal like root access to your house
    One wrong command can break things fast. Read commands carefully before hitting Enter.
  2. Prefer documentation for your exact distribution
    The source notes that bash is default on Ubuntu, Fedora, RHEL — so look for guides that match those specifically.
  3. Avoid random copy–paste from the internet
    If you don’t know what a command does, it’s worth taking a minute to look it up.
  4. Use test or staging servers where possible
    If you administer WordPress, WooCommerce, or any production site, practice new terminal tricks on a non-critical box first.

Again, the source doesn’t provide particular backup steps, but in the real world, having a backup before big changes is always the safer path.


Next Step: Get Comfortable with the Prompt You See Every Day

We didn’t go beyond the source material, so this was all about the core concepts:

  • A terminal emulator is just an app that gives you a terminal in your GUI.
  • The shell (like bash) reads commands and tells the OS what to do.
  • After login, you see a Message of the Day, then a command prompt.
  • The example prompt includes at least your username, like sammy on Ubuntu 20.04.

From here, your next move is simple: open your terminal emulator, look at your prompt, and just get comfortable sitting there without rushing to type dangerous commands.

Once the pieces feel familiar — terminal emulator, shell, prompt — adding actual commands on top becomes much less stressful.

If this worked for you, keep CrushEdge handy for the next fix.

No Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.