Linux command 01

pwd

Print the full path of the directory you are currently in.

Beginner 2 min Topic: Linux

Syntax

Command

pwd

Example

Example command

pwd

Run it in any terminal window to reveal the full directory path for your current working location.

Why it matters

Many Linux tasks depend on context. Before listing files, changing directories, or creating folders, it helps to confirm exactly where you are.

Expected output

You should see a full directory path.

What you may see

/home/learner/projects

Your path will be different. What matters is that Linux returns your current location.

Common mistake

Mistake: Expecting pwd to show files in the folder.

Correction: pwd only prints the current path. Use ls when you want to see the contents of a directory.

Practice

  1. Open a terminal and run pwd three times from the same location.
  2. Change to a different folder on your machine, then run pwd again.
  3. Say out loud what the output means in plain English.

Video

Quick walkthrough

A short visual walkthrough will sit here as the library grows. For V1, focus on reading the command and confirming the output yourself.

Previous / Next

Continue to next command

Stay with this command until it feels familiar, then move forward calmly.

Continue to ls