Skip to content

Try our new Crash Courses!

Buy one of our new Crash Courses, now hosted on Teachable.

Move into your user directory – Terminal


To move into your user directory in your terminal, enter the following command:

cd ~


You can use the above command from any other folder while you’re in the terminal.

To check if you’ve moved into the correct directory, enter the following command in your terminal to print the full path of the directory you’re currently in:


If you’re on macOS, you should see something like this print out:



Try the following command in your project folder:

cd ~


Command Line Primer on the Apple Developer Archive (see the sections called Specifying Files and Directories and Frequently Used Commands)

Back to: Terminal Reference > Terminal Basic Commands