0
0
Linux CLIscripting~10 mins

pwd (print working directory) in Linux CLI - Mini Project: Build & Apply

Choose your learning style9 modes available
Using the pwd Command to Show Your Current Directory
📖 Scenario: You are learning to use the Linux command line. One important command is pwd, which shows you the folder you are currently in. This helps you know where you are in your computer's files, just like knowing your location on a map.
🎯 Goal: Learn how to use the pwd command to display the current working directory in the terminal.
📋 What You'll Learn
Open a terminal window
Type the pwd command
Understand the output showing the current directory path
💡 Why This Matters
🌍 Real World
Knowing your current directory helps you manage files and folders easily in the terminal, just like knowing your address helps you receive mail.
💼 Career
Many IT and programming jobs require using the command line to navigate and manage files efficiently.
Progress0 / 4 steps
1
Open the Terminal
Open your terminal application to start using Linux commands. No code to write here, just open the terminal.
Linux CLI
Need a hint?
Look for an app called Terminal, Console, or Command Line on your computer.
2
Type the pwd Command
Type pwd exactly in the terminal and press Enter to run it.
Linux CLI
Need a hint?
Make sure to type the letters p, w, d in lowercase with no spaces.
3
Understand the Output
Look at the output after running pwd. It shows the full path of the folder you are currently in.
Linux CLI
Need a hint?
The output looks like a path starting with a slash, for example, /home/username.
4
Print the Current Directory Path
Run the pwd command again and note the output. This confirms your current directory path.
Linux CLI
Need a hint?
The output should be a path starting with a slash, like /home/yourname.