Have you ever opened a folder on your computer and seen a bunch of files starting with a dot? Like .bashrc or .gitconfig? Most people don't even notice them because they're hidden by default. It’s a long-standing feature of operating systems based on UNIX.
But what if this common practice, designed to keep your file system tidy, is actually a mistake? A mistake that has been around for years, causing confusion and problems for many users. Let's look back at a conversation from 2012 that sparked this debate.
The Hidden Files We All Ignore
In the world of computers, especially those running on systems like Linux or macOS, files starting with a period are automatically hidden. This is done to prevent clutter. Imagine seeing hundreds of configuration files mixed in with your photos or documents. It would be messy.
These hidden files, often called "dotfiles," are usually settings and preferences for programs. They help software remember how you like things. They control how your command line looks, what shortcuts you use, and many other small but important details.
A Simple Rule, A Big Problem
Rob Pike, a well-known computer programmer, wrote about this in
- He pointed out that hiding dotfiles was a simple rule, but it led to some unexpected issues. The main problem was that people didn't know these files existed or what they were for. This made it hard to manage them.
When you don't know a file is there, you can't easily back it up. You also can't easily share your settings with someone else. If you want to move to a new computer, copying these hidden files is crucial for keeping your setup the same. But how do you copy what you can't see?
The "Mistake" That Persists
According to Pike, this hiding behavior wasn't really planned out. It just sort of happened. Early versions of UNIX had a few hidden files, and the system was designed to hide them. Over time, more and more programs started using dotfiles, and the hiding rule stuck.
He argued that this created a kind of *"accidental privacy."
- The files weren't hidden for security reasons, but because they were seen as system files. This led to a situation where important configuration data was kept out of sight, out of mind. This is a key part of the forgotten story of how our digital tools developed.
Why Hiding Files Caused Confusion
One of the biggest issues was with *"dotfile management."
- People needed ways to see, copy, and edit these files. This led to special commands like
ls -a(list all files) just to make them visible. It felt like a workaround for a problem that shouldn't have existed.
Think about it like having a secret drawer in your house that you forget about. You put important papers in there, but then you can't find them when you need them. You might even forget the drawer exists. That's what happened with dotfiles for many users.