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!

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

CSS Sass Basics (retired) Getting Started with Sass Installing and Using Sass

Jacob Lee
Jacob Lee
1,499 Points

Get 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


2 Answers

cd = change directory pwd = print working directory

if u Run cd or ~ it will take you to your home directory e.g


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).

For some reason I see this: cesars-MBP:desktop delavegacesar$

And not just: Desktop$ as it shows on the video... Help?