3 ms·
A hidden file, even. Stop using "ls -A" and you'll be fine.
by chungy 4y ago
A hidden file, even. Stop using "ls -A" and you'll be fine.
- superluserdo 4y agoTo 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.
- xolox 4y agoWho cares how the feature of hidden files came to be, when it has been what it is now for so many years?