Going into a folder
Navigate with cd
⏱ Est. ~4 min
01 · Read
You can see where you are and what's around you — now it's time to move. The cd command lets you walk into a folder.
💡 Picture thisIf pwd is checking the map and ls is looking around the room, cd is walking through a door into another room.
Key points
- cd is short for change directory
- Type cd followed by a folder name to step inside
- The prompt updates to show your new location
02 · Terminal exercise
You can see three folders. Let's step into one of them.
(This section is interactive — please enable JavaScript.)
03 · Terminal exercise
Nice — you're inside documents. Let's see what's here.
(This section is interactive — please enable JavaScript.)
04 · Terminal exercise
Now confirm your location. Build the habit.
(This section is interactive — please enable JavaScript.)
05 · Fill in the blank
To step into a folder called photos, you'd type: ___ photos
Other lessons in this chapter
⚠ The full interactive experience needs JavaScript. Please enable it and reload.
※ This is an independent Traditional Chinese teaching project — not an official Anthropic product. Claude™ is a trademark of Anthropic, PBC.