Start at the Desktop

On most systems, you should be able to type cd Desktop to get to your Desktop. If that doesn’t work, you may need to type cd ~/Desktop—using the tilde shortcut—or you might need to spell the whole thing out, as in cd /Users/andy/Desktop.

However you accomplish it, when I say “start at your Desktop” or just cd Desktop, that’s what you’ll always need to do, whether it’s from anywhere, like this:

 
$ ​cd Desktop

from your home directory first:

 
$ ​cd
 
$ ​cd Desktop

using a tilde for the home directory:

 
$ ​cd ~/Desktop

explicitly typing the name of your home directory:

 
$ ​cd /Users/andy/Desktop

or doing that with quotes because you have spaces in the name:

 
$ ​cd /Users/"John Smith"/Desktop

No matter what, ...

Get Learn to Program with Minecraft Plugins, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.