Skip to content
Guest
Learn Linux · Course Syllabus Show lessons
Shell Basics · 7 min read · Beginner

Navigation, Files & Directories

Move confidently across the Linux filesystem using pwd, ls -la, mkdir -p, cp, mv, and rm.

What you'll learn

  • Understand absolute paths (/var/www) vs. relative paths (./dist)
  • Create nested directories safely with mkdir -p
  • Inspect hidden dotfiles and file sizes with ls -lah

Every production web server, cloud VM, and Docker container runs Linux. Mastering the command line lets you deploy, debug logs, and automate workflows in seconds.

  • pwd prints your current working directory.
  • ls -lah lists all files (including dotfiles like .env) with human-readable sizes.
  • mkdir -p a/b/c creates parent folders automatically without failing if they already exist.

Fill-in-the-Blank Exercise

Create Nested Folders & List All

Create app/src/utils in one command and list all files including hidden ones.

mkdir  app/src/utils
ls -

Live Bash Lab

Bashfiles.sh
Expected OutputClick “Run Live” to compile with GNU Bash
readme.txt
Hello Linux

Check Your Understanding

Score: 0 / 1

1. What does the -p flag do in mkdir -p /var/www/app/dist?

Study Workspace

Finished this lesson?

Your progress is saved locally in your browser, no account needed.

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind