Browse Linux & CLI Topics ▼

Navigation (pwd, cd, ls)

📂 The Terminal & Navigation 📘 Lesson 2 of 21

Navigate the hierarchical Linux directory tree with pwd, cd, relative/absolute paths, and ls.

Navigation (pwd, cd, ls) is an essential topic in LINUX.

Overview

Mastering navigation (pwd, cd, ls) provides the core mental model and practical skills needed for real-world software engineering workflows.

# Print working directory
pwd

# List all files including hidden ones with sizes
ls -lah

# Change to user home directory
cd ~

Key Concepts

  • Understand the fundamental syntax, commands, and architecture.
  • Learn standard conventions, safety guardrails, and common pitfalls.
  • Apply practical idioms directly in production environments.

[!TIP] Practice these core patterns thoroughly. Next, proceed to linux-file-crud-cp-mv-rm.

Test your understanding of Navigation (pwd, cd, ls)

Quick interactive practice questions with instant feedback.

Take Quiz →