Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCesar De La Vega
13,900 PointsHow do I get terminal to show Desktop$ as in the video?
For some reason I see this: cesars-MBP:desktop delavegacesar$
And not just: Desktop$ as it shows on the video... Help?
2 Answers
Eric Butler
33,512 PointsCesar, Anything before the $ is just a personalization thing based on your computer. It doesn't affect the commands you type. To get your terminal to the right place, just type:
cd ~/desktop
(Note: that's a tilde character up there, not a hyphen.) Any subsequent commands you type into the terminal (like mkdir myNewFolder
) will be directed toward that current directory, which is the Desktop of your computer, same as in the video.
If you ever don't know where you are in your terminal, just type:
pwd
It stands for "print working directory." The response will show you what directory your terminal is pointing to at that moment. If it says something like /Users/[your username]/desktop
, then you're in the right place.
Hope this helps!
Cesar De La Vega
13,900 PointsThank you! Very helpful answer.