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 trial

Development Tools Console Foundations Installing Software Building Software From Source

download to specific folder

the video, Jim mentions that he likes to keep his source files in a different folder and should have downloaded it there directly. How do you specify a path for a download? Many thanks

2 Answers

When you download from the console, the file will download to whichever directory you're in at the moment. If you want to download a tar file into your 'Projects' directory, simply cd into 'Projects' first and then run the curl -O command. Make sense?

Yes, I understand, thank you very much. But then is there a way to set a default folder for downloads like we do in windows?

If you're using the console to download files (terminal if you're on a mac), you don't have to (and can't) set a default download location, because the file will always be downloaded to whatever folder you're in. If, on the other hand, you're using your browser to download the file (chrome, firefox, etc.), you can change your default downloads folder from each browser's preferences. On most Macs the default is the "Downloads" folder in your home directory.