← Back to course

Finding Your Way Around

Finding Your Way Around

Welcome back.

In the previous lesson, you said hello to the terminal.

Now it is time to move around.

Because standing in one folder forever is not a life plan. It is a digital waiting room.

What You’ll Learn

In this lesson, you’ll learn how to:

The Mission

Your mission is simple:

Learn how to move through the file system without feeling like you entered a maze built by a tired robot.

Where Am I?

The command pwd means:

print working directory

It shows your current location.

Try:

pwd

You may see something like:

/home/viktor

This means you are inside your home directory.

What Is Here?

To see what is inside the current folder, use:

ls

This lists files and folders.

If you want more details, use:

ls -la

This shows hidden files too.

Hidden files usually start with a dot, like:

.config
.local
.bashrc

Linux hides them because apparently even files need privacy.

Moving Into a Folder

To enter a folder, use cd.

For example:

cd Documents

Now check where you are:

pwd

You should see something like:

/home/viktor/Documents

Congratulations. You moved.

No mouse. No drama. Just pure terminal elegance.

Going Back

To go one level back, use:

cd ..

The .. means “parent folder”.

So if you are here:

/home/viktor/Documents

and you run:

cd ..

you go back to:

/home/viktor

Going Home

To return to your home directory, use:

cd ~

Or simply:

cd

Both bring you home.

The terminal has a home button. It is just not shaped like a little house.

Absolute Paths

An absolute path starts from the root of the system.

Example:

cd /home/viktor/Documents

It tells Linux the full address.

Like giving a taxi driver the complete street address instead of saying “near that coffee place”.

Relative Paths

A relative path starts from where you are now.

If you are already in:

/home/viktor

you can write:

cd Documents

This is shorter because Linux understands that Documents is inside your current folder.

Useful Movement Commands

Here are the most important ones:

pwd
ls
ls -la
cd Documents
cd ..
cd ~
cd

These commands are enough to start moving confidently.

Not like a hacker in a movie yet, but at least like someone who knows which room they are in.

Common Mistakes

Folder names are case-sensitive

This may work:

cd Documents

This may not:

cd documents

For Linux, Documents and documents are different names.

Linux is strict. Like a teacher who drinks espresso without sugar.

Spaces in folder names

If a folder has spaces, use quotes:

cd "My Folder"

Or escape the space:

cd My\ Folder

But honestly, avoid spaces in folder names when learning. Do not make your life spicy for no reason.

Getting lost

If you feel lost, run:

pwd

Then go home:

cd

There. You are safe again.

Practice

Try this:

pwd
ls
cd Documents
pwd
cd ..
pwd
cd
pwd

Now answer:

  1. What does pwd show?
  2. What does cd .. do?
  3. What does cd without anything do?
  4. What is the difference between absolute and relative paths?

Mini Challenge

Open the terminal and do this:

  1. Go to your home directory.
  2. List files and folders.
  3. Enter one folder.
  4. Check where you are.
  5. Go back.
  6. Return home.

Use only terminal commands.

No mouse. The mouse can rest today.

Summary

Today you learned:

Next Lesson

In the next lesson, we’ll learn how to create, copy, move, and delete files and folders.

Yes, delete too.

Carefully.

The terminal gives power, but it does not provide adult supervision.