Navigating Files and Folders

Learn how to navigate files and folders using the CLI.

Navigating directories

The cd command lets us change directories. It’s the tool for changing our current working directory, or the location on the filesystem. As we’ve already seen, using cd by itself takes us straight to our home directory:

$ cd

Then, we execute the pwd command to check our location. We’ll then see a file path displayed:

$ pwd

Get hands-on with 1200+ tech skills courses.