🌐 Linux Free Masterclass (Episode 6): Basic Commands (pwd, ls, and cd)
How do you navigate and explore the Linux terminal using pure keyboard commands without ever touching a mouse? Through essential navigation commands.
Here are the key points from Episode 6:
🔹 1. The pwd Command (Print Working Directory)
Purpose: Tells you your exact current location within the Linux file system tree.
Usage: Typing pwd and pressing Enter outputs the absolute path of the directory you are currently standing in (e.g., /home/yash).
🔹 2. The ls Command & Flags (Listing Files)
Purpose: Displays the contents (files and subdirectories) of your current directory.
Advanced Flags:
ls shows standard visible files.
ls -la combines long listing details (-l) with hidden files (-a, which reveal configuration files starting with a dot).
🔹 3. The cd Command (Change Directory)
Purpose: Allows you to navigate and jump between folders.
Shortcuts & Navigation:
cd FolderName moves you forward into a specific directory.
cd .. steps you backward one level in the directory tree.
Typing cd alone instantly returns you home.
🚀 Think of terminal navigation like walking through a massive multi-floor building: pwd is the digital directory sign telling you which floor you are on, ls is looking around to see what shops are nearby, and cd is walking straight through a doorway into a new room!
