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

Computer Science

Thomas Dimnet
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Thomas Dimnet
Python Development Techdegree Graduate 43,629 Points

The purpose of hidden files

Hello there,

I am in the programming field for quite a long but a question raises when looking at this video: what is the purpose of hidden files?

I know some of them are used for configuration (.vimrc, .prettierrc and so on). But why do we hide them?

Is it some kind of a convention?

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Thomas Dimnet! The primary purpose for hiding files is to keep them from accidentally being deleted. Ultimately, hidden files can always be seen by the user, but typically you only want people to see them who know what they are and why they are there :smiley:

Thomas Dimnet
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Thomas Dimnet
Python Development Techdegree Graduate 43,629 Points

Yes, sure :) But for instance for .prettierrc or .eslint, you will remove them anyway if you delete the all folder. But I think I see what you say :)