# pwd

> A command that prints which folder you are in right now.

**Field:** Infrastructure  
**Category:** Linux & the Command Line  
**Also known as:** pwd Command, Print Working Directory, Current Working Directory

## Think of it like

Think of it like the dot on a map that says you are here.

## Definition

The pwd command prints the folder you are in right now. Its name is short for print working directory. Every command you type runs from this folder. So pwd is the first thing to check when a file seems to be missing. It prints the full path, starting from the root.

## Example

Jack runs a script, and it says the file is not found. He types pwd and sees he is in the wrong folder.

## Example code

```console
$ pwd
/home/jack/projects
```

The answer is the full path to the folder Jack is in.

## Why it matters

Many errors come from running a command in the wrong folder. pwd tells you in one word.

## Common mistake

Guessing where you are from the prompt. Some prompts hide the full path, so check with pwd.

## Three principles

- **You are here.** Prints the current folder.
- **Full path.** Starts from the root.
- **Check first.** Before you blame a missing file.

## Related terms

- [cd](https://learn.benibix.com/term/infrastructure/cd-command)
- [ls](https://learn.benibix.com/term/infrastructure/ls-command)
- [Root Directory (/)](https://learn.benibix.com/term/infrastructure/root-directory)
- [File Path](https://learn.benibix.com/term/development/file-path)

## Taught in

- [The Linux File Tree](https://learn.benibix.com/learn/infrastructure-linux/linux-file-tree): Linux CLI, 4/10

![A folder tree with a single slash at the top, the root. Below it hang etc, home, root and var. Under home sits emma, marked with a tilde as her home folder and with a you-are-here marker. Inside emma are notes.txt, photos and two faded hidden items, .bashrc and .ssh. Under var sits log. An arrow shows a cd move from emma down to var/log.](https://learn.benibix.com/diagrams/inf3-file-tree.svg)

---

Source: https://learn.benibix.com/term/infrastructure/pwd-command
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
