AiCESoftware Engineering Foundations →

Software Engineering Foundations · The Ubuntu Terminal

Getting Oriented in the Terminal

Introduces the terminal, explains how to read the prompt, and describes how the Linux file system organises paths and directories.

883 words · about 5 min read

Read this book

Read or download the PDF

Getting Oriented in the Terminal AiCE Software Engineering Foundations — The Developer Environment Every software developer spends time in the terminal. It looks intimidating at first — a black screen, a blinking cursor, no icons, no menus — but it is simply another way of talking to your computer. Instead of pointing and clicking, you type instructions and the system responds immediately. This lesson introduces you to what a terminal actually is, how to read what it shows you, and how your computer organizes every file and folder you will ever create. 1. What Is a Terminal? A terminal — also called a command-line interface, or CLI — is a text-based program that lets you communicate directly with your operating system. You type a command, press Enter, and the system carries it out and shows you the result. There is no dragging, no clicking, no visual windows to manage. It helps to understand where the terminal sits relative to the graphical interface you already know. When you open File Explorer on Windows or Finder on a Mac, you are looking at a visual wrapper built on top of the same underlying file system that the terminal exposes directly. Both are doors into the same house — the terminal is simply the door that gives you the most direct, most powerful access. Why This Matters As a developer, you will use graphical tools often, but the terminal is where servers are configured, where code is deployed, and where many professional tools only exist. Learning it early removes a barrier that trips up a lot of beginners. On Ubuntu Linux, the default terminal application is called the GNOME Terminal. You can open it in two common ways: press Ctrl + Alt + T on your keyboard, or search for “Terminal” in the application launcher. © Adesina Olagunju | African Institute for Computing Excellence | 1 What Is Ubuntu? Ubuntu is a popular, free, and open-source Linux-based operating system, widely used in software development, server administration, and cloud computing. A large share of the servers behind fintech platforms, e-commerce systems, and mobile money infrastructure across Africa run on Ubuntu or a similar Linux distribution — which is exactly why it is the environment this course is built around. 2. Understanding the Terminal Prompt When you open the terminal, the first thing you see is a prompt. It typically looks something like this: yourname@ubuntu:~$ This single line is telling you four things at once: yourname — the username of the person currently logged in ubuntu — the hostname, i.e. the name of the computer ~ — the tilde symbol, which represents your home directory $ — the dollar sign, signalling that the terminal is ready to accept a command The cursor blinks right after the dollar sign — that is where whatever you type will appear. As you move between folders later on, you will notice this prompt changes to reflect exactly where you are, which is one of the terminal's quiet but very useful habits: it always tells you your current location before you ask. 3. The File System — Paths and Directories Everything stored on a computer — every document, photo, program, and piece of code — is organized in a hierarchy of directories (folders) and files. This organizational structure is called the file system. In Ubuntu, this hierarchy starts at a single point called the root, represented by a forward slash: © Adesina Olagunju | African Institute for Computing Excellence | 2 / Every directory and file on the system branches outward from this one root, the same way a river branches into tributaries, or a family tree expands outward from a single ancestor. No matter how deep or complex a folder structure gets, you can always trace it back to that single starting point. A path is the address of a file or directory within this hierarchy — the exact route you would follow, starting from root, to reach it. For example: /home/yourname/MyCodes Reading this left to right: start at root (/), go into the home directory, then into the folder named yourname, then into the folder named MyCodes. Every single file and folder on your system has one, and only one, path that uniquely identifies it — no two items in the same location can share a name. Path vs. Address “Path” is the correct technical term, and it behaves exactly like a postal address — it uniquely identifies a location. When a programmer asks “what is the path to that file?” they are asking for its exact location within the file system, not its filename alone. Key Takeaways The terminal is a direct, text-based line of communication with your operating system — not a replacement for the graphical interface, but a more powerful complement to it. Every terminal session begins with a prompt that tells you who you are, what machine you're on, and where you currently stand in the file system. And that “where” is always describable as a path, a precise address within a single, root-anchored hierarchy of directories and files. These three ideas — the terminal itself, the prompt, and the path — are the lens through which every command in the next lesson will make sense. © Adesina Olagunju | African Institute for Computing Excellence | 3