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 trialJacob Lee
1,499 PointsGet Terminal to direct straight to desktop
How do you make Terminal write straight to your desktop (or whatever directory you want) as per your tutorial? I'm currently using 'cd' to get Terminal to look at a particular folder
Thanks
2 Answers
Luksy Breezy
268 Pointscd = change directory pwd = print working directory
if u Run cd or ~ it will take you to your home directory e.g
/Users/JacobLee
use pwd command to view the current directory that u are inside. if u in the home or users directory u can use
cd Desktop/
to change ur current directory (Users/JacobLee) to the desktop.
pwd from this directory will result in : Users/JacobLee/Desktop
USE cd when u want to navigate from one folder to another
USE pwd to view/print the working (current) directory u are current working (inside).
Cesar De La Vega
13,900 PointsFor some reason I see this: cesars-MBP:desktop delavegacesar$
And not just: Desktop$ as it shows on the video... Help?