3 ms·
dot prefixed files is a kludge that is now a standard rather than an actual hidden attribute like on Windows/NTFS. The actual heritage is when `ls` was written
by laumars 7y ago
dot prefixed files is a kludge that is now a standard rather than an actual hidden attribute like on Windows/NTFS.
The actual heritage is when `ls` was written to exclude .. (dot dot) directories from it's listing the code literally just had the logic to exclude any files which had a dot/period as its first character. Later operators exploited that bug/feature to create items with a dot prefix to make those files and folders hidden. Eventually this became convention.
Whereas systems released more recently understood the need to have a hidden file attribute so made it a first class property.
I do love POSIX and often the first to defend some of Linux or BSDs idiosyncrasies but if there was ever anything that was worth someone saying "I know we've always done it this way but it's shit and it's about time we implemented a proper solution", it would be the dot prefix kludge. (I also know it's easier said than done and would take years for all the tooling to catch up)