Techub Knowledge Center
TechubKnowledge Center • Illustrated Guides • Troubleshooting

Describe the Linux task or exact error — for example, updates fail or a drive will not mount.

Files, Folders & Permissions • Linux & Open Source

Understand Linux Paths & Basic Terminal Commands

Read your location and the exact file path before changing or copying anything.

DifficultyIntermediate; owner or authorized administrator
Time20–45 minutes for checks; installation, backup or recovery can take longer
Guide typeIdentify, act & verify
GoalProtect files and verify the Linux task

Protect the data first. Work only on systems, files and accounts you own or are authorized to manage. Identify the exact distribution, device and path before changes. Keep independent verified backups and required recovery keys. Do not format wanted data, run unexplained privileged commands or apply broad permission resets. A filesystem repair needs its supported unmounted/offline procedure. Plan console access and downtime for remote or service changes.

First — identify the distribution, context and task

Record the distribution/release, desktop or server role, account, target path or device and exact error. These guides label Ubuntu and GNOME examples; other distributions, desktops and app versions use different controls. Use supported instructions for your actual release. Screenshots illustrate sample values and are not evidence of your system state. Read each command and its target before using it.

What you’ll need

Current distribution and application documentation · Authorized ordinary account and elevation only when needed · Private error/time notes · Independent backups and required keys · Correct device/path identity · Console and recovery plan for disruptive changes

Step 1 — Identify the actual system and account

Confirm whether the terminal belongs to your own PC, a VM, container or SSH server. Read whoami and pwd. Use an ordinary authorized account for these checks.

What to look for: The real host context, identity and current directory.

What the result means: A terminal window does not necessarily refer to the physical computer in front of you.

Step 2 — Read the directory structure

The filesystem root is /; a typical user home is under /home, while /etc holds system configuration. External filesystems appear at mount points. A home folder, filesystem root and administrator account are different concepts.

Filesystem root, user home and a relative path are different concepts. The sample account is illustrative; paths resolve on the actual local, virtual or remote system. Techub concept diagram, not a terminal or application screenshot.
Filesystem root, user home and a relative path are different concepts. The sample account is illustrative; paths resolve on the actual local, virtual or remote system. Techub concept diagram, not a terminal or application screenshot.Image: Techub · Source · View full-size image

What to look for: The specific path containing the wanted file.

What the result means: The same-looking folder name can occur under many different locations.

Step 3 — List before acting

Use ls to inspect the current folder and ls -la when hidden entries and permissions are needed. Hidden names commonly start with a dot; they are not automatically unwanted. Prefer the file manager when that is clearer.

GNOME Files list-view example shows home folders and the sidebar. Your home directory and an external mounted volume are different locations; verify the current path before moving or deleting data.
GNOME Files list-view example shows home folders and the sidebar. Your home directory and an external mounted volume are different locations; verify the current path before moving or deleting data.Image: GNOME / application maintainers · Source · View full-size image

What to look for: The exact spelling, case and file type.

What the result means: A name shown in a listing does not imply that you should delete or execute it.

Step 4 — Understand absolute and relative paths

A path starting with / is absolute. A relative path depends on your current directory; .. refers to its parent. Quote a filename containing spaces. Use the shell’s supported completion and inspect the result before pressing Enter.

What to look for: How the command’s target resolves from the current location.

What the result means: A correct relative path in one folder may point somewhere else in another.

Step 5 — Practice with a safe owned folder

Use the file manager or simple read-only listing commands on a folder you own. Read local help before commands that copy, move, delete, change permissions or use wildcards. Do not run an unexplained command with sudo.

What to look for: A known practice location away from system and backup data.

What the result means: Small context mistakes can have broad effects with elevated or recursive commands.

Step 6 — Verify the real target and output

Before any later modifying task, recheck host, identity, path and intended result. Open the resulting file or inspect the actual destination afterward. Keep private filenames and account details out of public screenshots.

What to look for: The intended object changed on the intended system.

What the result means: No terminal output does not always mean the action failed or succeeded.

What did you find?
You are on a remote or container systemVerify its identity and purpose first.
The file is not listedCheck path, case, hidden entries and mount state.
The path contains spacesUse supported quoting or completion.
A command would change wanted dataReview targets, effects and recovery before running it.
Distribution, desktop & application help

Use current official documentation for the exact distribution, release, desktop, filesystem, network manager and application. Ubuntu 26.04 installer examples are not universal Linux menus. GNOME app catalog screenshots illustrate the named app and may show a different version from the one installed.

Production services, encrypted storage, directory-managed users and unusual filesystem layouts need their responsible administrator and supported recovery procedure. Start with the exact error rather than a generic root command. Keep credentials, keys, private logs and backup contents out of public posts.

Parts & supplies — only if needed

Most initial checks use the supported tools already available. Buy a USB drive, backup destination or replacement hardware only when the task requires it, after checking exact hardware, capacity, power and distribution support.

Technical references

Techub’s troubleshooting guides are written in plain language and informed by manufacturer documentation. Features and procedures can vary by model. Before following model-specific steps, check the manufacturer’s latest instructions for your exact device.

Debian — pwd(1) — coreutils — Debian trixie — Debian ManpagesDebian — ls(1) — coreutils — Debian trixie — Debian ManpagesUbuntu — The Linux command line for beginnersTechub — linux open source.htmlFiles – Apps for GNOME

Still need help?

Need help with a Linux task?

Bring the distribution/release, desktop or server context, exact error and checks already tried. Explain whether wanted data has a usable independent backup. Keep credentials, keys, private paths and diagnostic data out of public screenshots.

Visit Techub Services ↗