Hacker News new | ask | show | jobs
by chungy 1229 days ago
A hidden file, even. Stop using "ls -A" and you'll be fine.
1 comments

To be pedantic, if we're going to cite Unix history, then technically there is no such thing as a "hidden" file. As I understand, the original implementation of tools like ls would not show the current directory "." in the listing. The quickest way of doing this in C was checking whether dentry.name[0] == '.'

This also had the side effect of hiding entries that had names beginning with ".", and over time an implementation bug/quirk became accepted behaviour, and was post-hoc rationalised as "hidden" files.

Who cares how the feature of hidden files came to be, when it has been what it is now for so many years?