Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Computer Science

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:

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