Skip to content

Try our new Crash Courses!

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

Move into your user directory – Terminal

Summary

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

cd ~

Details

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:

pwd

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

/Users/Username

Exercises

Try the following command in your project folder:

cd ~

References

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