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

Development Tools Console Foundations Getting Started with the Console Moving and Deleting Files

What is the difference between using ~ and . to get back to current directories?

Does using ~ and . take you back to current directories? Which one is recommended to use?

1 Answer

Hey Jessica,

The tilde (~) symbol takes you to your home directory. The period (.) takes you to your current directory. Here's a cheatsheet, https://github.com/0nn0/terminal-mac-cheatsheet/wiki/Terminal-Cheatsheet-for-Mac-(-basics-), that you can reference in the future :)

thanks so much! consoles is a whole different animal than HTML and CSS, so I'm trying not to get lost!