Using Ubuntu commands starts with learning where to enter them. Ubuntu Terminal is a text window where a shell reads commands and runs requested tasks.
This article shows how to read the prompt and navigate between folders in Terminal.
TL;DR
Open Ubuntu Terminal, use pwd to see where you are, ls to inspect that folder, and cd to move between folders.
- Press Ctrl+Alt+T or find Terminal in the app launcher.
- Use cd ~ for home and cd .. for the parent folder.
- Ask a command for guidance with command --help.
What Is the Ubuntu Terminal?
Ubuntu Terminal is a text window where a shell reads commands and runs requested tasks.
I use the shell prompt for basic checks because the result appears in the same text window.
Prompt layouts vary, but type only the command after the final input marker.
Before you start: key terms to know
A terminal emulator provides the window, while the shell interprets what you type in it. Ubuntu commonly uses Bash for interactive command-line sessions.
A prompt marks where input begins, and the working directory is the starting point for relative paths. Paths beginning with / start at the filesystem root.
Commands usually have a name followed by arguments and optional flags. In ls -a Downloads, ls is the command, -a is an option, and Downloads is its argument.
The tilde character ~ stands for the current user’s home directory in Bash. A filename beginning with a dot is hidden from the default ls listing, but ls -a includes it.
A prompt can include a username, computer name, and current directory, but its design depends on the shell configuration. Some prompts also show a shortened directory path or status symbol.
Press Enter to submit a command line. If the shell waits for more input, check for an unclosed quote before continuing.
Linux command names and paths are case-sensitive. For example, Downloads and downloads can refer to different names. If a command reports that a path is missing, compare its capitalization with the name shown by ls before changing anything.
Which Ubuntu terminal are you using?
How you open and control the terminal depends on the Ubuntu environment, while shell commands such as pwd, ls, and cd serve the same basic navigation tasks.
| Environment | What to expect | First check |
|---|---|---|
| Ubuntu Desktop | A graphical terminal window with desktop window controls. | Search the app launcher for Terminal if the shortcut differs. |
| Ubuntu Server | A text console or remote shell session. | Use the shell prompt and pwd to confirm the working directory. |
| Ubuntu on WSL | A Linux session hosted by Windows Terminal or another supported terminal. | Run pwd because the starting directory depends on how the instance was launched. |
Terminal instructions and safe command entry
Read a command from left to right before pressing Enter. Identify the command name, each option, and each path argument. If a guide uses a placeholder such as directory, replace it with a path that exists on your machine instead of copying it unchanged.
For a path that contains spaces, quote the complete path or escape each space. For example, cd “Project Files” passes one directory argument. Without quotes, the shell treats the two words as separate arguments.
Start with commands that inspect information, such as pwd and ls, while learning the prompt. Replace any example path with a location that exists on your machine.
Desktop and system keyboard shortcuts
The Super key opens the Activities overview, where you can search for Terminal when a desktop shortcut is unavailable.
Inside the terminal, Ctrl+L clears the visible screen by redrawing the prompt. It does not erase command history. The Up arrow recalls an earlier command for editing, and Tab completes a unique command or path prefix.
If several names match, another Tab press can show the available matches, depending on the shell configuration.
Many terminal apps use Ctrl+Shift+C to copy selected text and Ctrl+Shift+V to paste. Use the terminal’s Edit menu or context menu if those combinations differ in your app.
Confirm which window has focus before using a shortcut from a guide. Ubuntu’s keyboard settings let users change desktop shortcuts, so check the active binding when a listed combination does not work.
When a command appears to stop responding, Ctrl+C interrupts the foreground command in many shells, but it does not undo changes the command already made.
How to Use the Ubuntu Terminal Step by Step
Begin with commands that report or navigate without changing file contents.
Step 1: Open Terminal and read the prompt
On many Ubuntu desktop setups, Ctrl+Alt+T opens Terminal. Search for Terminal in the app launcher if the shortcut differs.
Step 2: Check your current folder
I ran a named Python file that prints the working directory and a few entries:
from pathlib import Path
import os
root = Path.cwd()
print(f"Current directory: {root}")
print("Visible entries:")
for name in sorted(os.listdir(root))[:5]:
print(name)
Run python3 ubuntu_terminal_path.py to print the directory and five entries shown here.
Current directory: /home/ubuntu/.cache/journaldev-article-runs/linuxfordevices-ubuntu-terminal-20261111T225842Z-85ee914e28c8
Visible entries:
.body-check.json
claim-ledger.json
content.raw
execution-receipt.json
fire-receipt.json
Path.cwd() supplies the first line, and os.listdir() supplies the names below it. The script sorts those names and prints five, keeping the sample brief while showing the directory’s contents.

Step 3: List files and move into a folder
By default, ls lists visible entries, while ls -a includes dotfiles. In /home/alex/Downloads, each slash separates one directory name.
pwd
ls
ls -a
cd ~
pwd
cd ..
pwd
I compared Bash’s parent-directory move with switching to the previous location. Each printed the expected path, which I checked with pwd.
Step 4: Return to a familiar location
In Bash, cd ~ and cd with no path return home. Use cd .. to move to the parent folder or cd – to switch to the previous one.
Step 5: Ask a command for help
Try ls --help for a brief option summary, or man ls for a longer reference when the manual is installed.
A pager displays manual text one screen at a time, and PageUp or PageDown moves through it while q returns to the prompt.
Use the app’s own window controls to manage a graphical terminal session.
Common Terminal Errors and Next Steps
Use the table to match a symptom with a next check.
| Situation | What you may see | What to check |
|---|---|---|
| Missing space in a command | cd..: command not found | Write cd .. with a space between command and argument. |
| Path does not exist | No such file or directory | Use pwd and ls to confirm the location and spelling. |
| Unknown option | ls: unrecognized option | Remove the option or consult ls --help. |
| Hidden entry not listed | Expected dotfile is absent | Run ls -a. |
I passed an unsupported option to ls and got ls: unrecognized option ‘--definitely-invalid’, followed by Try ‘ls --help’ for more information. The command exited with status 2, so the fix is to remove the unsupported option and check the documented options.
A graphical terminal has a scrollbar for earlier lines, while a text-only server can send long output through less.
Check the Ubuntu release with lsb_release -a when that utility is present. A file-based alternative is cat /etc/os-release, which reads distribution identification fields without changing them.
Before running a command that requires administrator access, read its options and confirm that it applies to your task.
Commands chained with semicolons run in order even when one fails. The && operator runs the next command only after success, while || runs it after failure. Prefer a chain only when its behavior is clear, since a later command may depend on the earlier result.
For more practice, see our guides to pwd, cd, command help, and man pages.
Conclusion
Ubuntu’s beginner command-line tutorial and CLI reference provide further examples. Our pwd guide and cd guide explain those commands in more depth.
FAQ
These answers cover common first questions about opening a terminal and navigating folders.
How do I open Terminal in Ubuntu?
Press Ctrl+Alt+T on many Ubuntu desktop setups, or search for Terminal in the app launcher. The launcher is the fallback if the shortcut differs.
How do I go back to my home directory?
Run cd ~ or enter cd with no path in Bash. Use pwd to confirm the current directory.
How do I show hidden files in Terminal?
Run ls -a to include entries whose names begin with a dot.
