0
0
Linux CLIscripting~15 mins

cd (change directory) in Linux CLI - Mini Project: Build & Apply

Choose your learning style9 modes available
Navigate Directories Using the cd Command
📖 Scenario: You are learning to move around folders on your computer using the command line. This helps you find files and organize your work easily.
🎯 Goal: Learn to use the cd command to change directories step-by-step.
📋 What You'll Learn
Use the cd command to move into specific folders
Use relative and absolute paths with cd
Use cd .. to move up one directory
Use pwd to check your current directory
💡 Why This Matters
🌍 Real World
Navigating folders quickly in the terminal helps you manage files and run programs efficiently.
💼 Career
Many tech jobs require using the command line to access and organize files on servers or development machines.
Progress0 / 4 steps
1
Start in the Home Directory
Type cd ~ to go to your home directory.
Linux CLI
Need a hint?

The tilde ~ means your home folder.

2
Move into the Documents Folder
Type cd Documents to move into the Documents folder inside your home directory.
Linux CLI
Need a hint?

Use the folder name directly because Documents is inside your home folder.

3
Go Up One Directory
Type cd .. to move up one directory from Documents back to your home directory.
Linux CLI
Need a hint?

.. means the folder above your current one.

4
Check Your Current Directory
Type pwd to print your current directory path and confirm you are back in your home directory.
Linux CLI
Need a hint?

The output should show a path ending with your username, which means you are in your home folder.