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.
pwdprints your current working directory.ls -lahlists all files (including dotfiles like.env) with human-readable sizes.mkdir -p a/b/ccreates 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.