Change Directory on a Mac, Linux, or Windows Machine

Change Directory on a Mac, Linux, or Windows Machine

We’ll be showing you how to change directory on a Mac, Windows, or Linux machine. Need to do something to a file on the terminal? Need to delete an entire folder and its children on the command line like I show here? Well first you might want to get to the same directory where it’s located if you’re not into long ass paths and typing. We’ll be using the “cd” command.

The Magic

cd yourFolderPath

Explanation

There really isn’t much to explain. Change directory, or cd, into your folder! Folder paths will look like the following on a mac /Users/yoourUserNameHere/Desktop. Happy programming! I know this was brief so let me know if I should go into detail on anything specific.

Need more info to get started with terminal commands? Check out this article.

Cheers!

Leave a Comment