October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk8 min

Basic Linux Navigation and File Management for Beginners

A practical beginner’s guide to Linux paths and terminal file management, including safe workflows for navigating, creating, copying, renaming, and deleting files.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Linux file work becomes predictable once you understand one idea: the shell always operates from a current working directory. Use pwd to confirm that location, ls to inspect it, and cd to move before creating, copying, renaming, or removing anything. This guide builds a safe practice routine around those commands and explains the path rules that prevent common beginner mistakes.

How the Linux command line sees your files

The Linux command line is a text interface to your computer. You type a command, press Enter, and the shell runs it in the current working directory. A command that uses a relative path therefore depends on where you are standing; the same command can affect different files after a directory change.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Most commands follow a simple pattern: the command name, optional options, and one or more paths. For example, ls -la notes asks ls to list the notes directory with two options enabled. Spaces separate arguments, so a filename containing spaces must be quoted or escaped.

Confirm your location and inspect a directory

Print the current directory with pwd

Run:

pwd

pwd prints the working directory, normally as an absolute path beginning with /. Make this your first check whenever a command could change or delete data. If the output is not the directory you expected, stop and use cd before doing anything else.

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

List files with ls

ls shows the contents of a directory:

ls

Ordinary listings are non-recursive: they show the requested directory’s immediate contents, not every file in every descendant directory. Names beginning with a dot are hidden by default. To include them and use a detailed, human-readable listing, run:

ls -la

The -a option includes entries such as .config, . (the current directory), and .. (the parent). The long format supplied by -l also displays permissions, ownership, size, and modification time. Use ls -la when checking whether a supposedly empty directory contains hidden files.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Move through Linux paths with cd

Absolute and relative paths

An absolute path starts at the filesystem root, /, and identifies a location independently of your current directory. An example is /home/user/Documents; replace user with the actual account name on your system.

A relative path starts where you currently are. If pwd reports /home/user, then Documents and Documents/report.txt refer to items below that location. Relative paths are convenient inside a project; absolute paths are explicit and useful in scripts or when you are unsure of your location.

Special path components have fixed meanings:

  • . means the current directory.
  • .. means the current directory’s parent.
  • ~ conventionally expands to your home directory in an interactive shell.
  • / is the filesystem root, not the same thing as your home directory.

Change directories

Use cd followed by an absolute or relative path:

cd Documents
cd /tmp
cd ..
cd /
cd ~/Desktop

cd .. moves up one level. cd / takes you to the root of the filesystem. Ubuntu’s beginner examples use cd ~/Desktop to reach a Desktop folder under the home directory. Running pwd after a change verifies the result.

For names containing spaces, quote the complete path:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
cd "Project Files"

Tab completion is safer than retyping long names: type enough characters to identify the item and press Tab. If more than one name matches, type another character or press Tab again to see the choices.

Create a safe practice area

Practice under a directory that belongs to you rather than in a system directory. The following commands create a workspace in your home directory and enter it:

cd ~
mkdir -p linux-practice
cd linux-practice
pwd

mkdir name creates one directory. The -p option also creates missing parent directories, so mkdir -p practice/notes succeeds even when practice does not yet exist. It also avoids an error when the requested parent chain is already present.

Create files and directories

Use mkdir for directories

Inside the practice area, create a nested directory with:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
mkdir -p practice/notes

Check what exists before entering it:

ls
cd practice/notes
pwd

Use touch for an empty file

Run:

touch lesson.txt

If lesson.txt does not exist, touch creates an empty file. If it already exists, the command updates its timestamps rather than erasing its contents. Confirm the file with:

ls -la

touch does not open an editor and does not add text. Use a text editor when you need to write content.

Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Copy, move, rename, and remove

Copy with cp

cp leaves the original in place and creates a second item:

cp lesson.txt lesson-copy.txt

With two file names, the first argument is the source and the second is the destination. To copy into an existing directory, provide that directory as the destination:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
cp lesson.txt ../

Inspect both locations with ls -la when you need to confirm that the copy landed where intended.

Move or rename with mv

GNU Coreutils describes mv as “Move (rename) files.” A rename is simply a move from one name to another in the same directory:

mv lesson-copy.txt renamed.txt

Moving to another directory changes the item’s location:

mv renamed.txt ../

Unlike cp, mv does not leave the original at its old path. Treat the destination as significant: if it names an existing directory, the source is placed inside that directory rather than replacing the directory itself.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

Remove a file with rm

Use:

rm renamed.txt

rm removes the named file in ordinary terminal use; it does not provide a recycle-bin step. GNU Coreutils defines it as “Remove files or directories.” Because recovery is not part of this beginner workflow, inspect the path before pressing Enter.

Remove a directory tree with rm -r

Directories normally need to be empty before ordinary removal. The recursive option removes a directory and its contents:

rm -r notes

Use this only for a path you created specifically for practice. Do not apply it to /, /home, or an unfamiliar path. A recursive command can remove many nested files in one operation.

A complete beginner exercise

The following sequence is designed to run inside the linux-practice directory created earlier. It demonstrates each operation without touching unrelated files:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. pwd — confirm that you are in the practice workspace.
  2. ls — inspect its current contents.
  3. mkdir -p practice/notes — create the nested practice directory.
  4. cd practice/notes — enter it.
  5. touch lesson.txt — create an empty file.
  6. ls -la — verify the file and see hidden entries.
  7. cp lesson.txt lesson-copy.txt — make a second file while keeping the original.
  8. mv lesson-copy.txt renamed.txt — rename the copy.
  9. ls -la — verify that both lesson.txt and renamed.txt are present.
  10. cd .. — return to the parent directory.
  11. Run pwd and ls; confirm the target is exactly the practice directory you intend to remove.
  12. rm -r notes — remove the confirmed practice tree.
  13. ls — check that the directory has disappeared.

If you followed the commands literally, the path in step 12 is the notes directory beneath the practice location, not a system directory. If your pwd output differs, do not continue until you have corrected it.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Relative paths versus absolute paths

Path style Example Strength Risk or limitation
Absolute /home/user/Documents/report.txt States the complete location and does not depend on the current directory. It is less portable when the account name, mount point, or machine changes.
Relative notes/today.txt Short and convenient within a project or practice folder. It refers to a different item if your current directory changes.

Use pwd to make a relative command understandable before you run it. In scripts or instructions shared with someone working elsewhere, an absolute path can remove ambiguity, but only when that path is valid on the target system.

Shell commands versus a graphical file manager

Consideration Graphical file manager Shell
Discoverability Visible folders, buttons, and menus help a newcomer explore. Requires knowing command names and path syntax.
Repeatability Repeated actions usually require repeated pointing and clicking. A command can be copied, edited, and run again.
Hidden files Visibility depends on a view setting. ls -a explicitly includes dot-prefixed entries.
Path precision Dragging and selecting can obscure the exact destination. The typed source and destination are explicit.
Recovery risk Some environments offer a trash or confirmation dialog. rm is normally immediate, so verification is essential.

Neither interface replaces the other. A graphical manager is useful for discovering unfamiliar folders; the shell is efficient when you know the exact paths and want repeatable operations.

Safety checks that prevent destructive mistakes

  • Run pwd immediately before a destructive command such as rm or rm -r.
  • Run ls or ls -la and compare the exact spelling of the target with what you intend to change.
  • Prefer a destination written explicitly rather than relying on a remembered current directory.
  • Quote paths containing spaces, and use Tab completion to avoid mistyped names.
  • Practice in ~/linux-practice or another directory you created, never in an unknown system location.
  • Remember that a normal ls hides dotfiles; use ls -a before deciding that a directory is empty.

Common beginner problems

“No such file or directory”

The path is misspelled, the parent does not exist, or you are in the wrong directory. Run pwd, inspect with ls, and use cd one level at a time. For a new hierarchy, create missing parents with mkdir -p.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

“Permission denied”

The account does not have the required permission for that path. First confirm the location with pwd and inspect permissions with ls -l. Move your practice work into a directory you own instead of experimenting in system directories.

The file seems to be missing

It may be hidden because its name begins with a dot, or it may be in another directory. Run ls -la, then verify the location with pwd. Check spelling and capitalization; Linux filenames are case-sensitive.

A command changed the wrong item

Stop immediately and do not run more cleanup commands. Record the exact command, current path, and listing shown by pwd and ls -la. For future operations, separate inspection from action: check the path first, then run one change, then verify the result.

Compact command reference

Goal Command Meaning
Show current location pwd Prints the working directory.
Change location cd path Accepts an absolute or relative path; cd .. goes to the parent.
List contents ls, ls -la Lists entries; -a includes dotfiles and -l shows details.
Create a directory mkdir name Creates one directory; mkdir -p a/b creates missing parents.
Create an empty file touch file Creates an absent file or updates timestamps on an existing one.
Copy cp source destination Creates a copy and leaves the source.
Move or rename mv old new Relocates an item or gives it a new name.
Remove a file rm file Removes the file immediately in ordinary terminal use.
Remove a tree rm -r directory Recursively removes a confirmed directory and its contents.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.