Ask HN: Why is the Windows hosts file in such an odd location?
On modern Windows:
%SystemRoot%\system32\drivers\etc\hosts
It used to make more sense (to me at least): %WinDir%\HOSTS
Is it some kind of homage to UNIX or a standardization attempt?Does anyone know why Microsoft choose that folder?
8 comments
[ 8.5 ms ] story [ 60.4 ms ] threadIs it a "driver"? Why "etc"?
I was just adding a temporary entry to it, and was genuinely curious as to why such decisions are made.
And yes, for me that old location is less clicks in Explorer to navigate to. For most users the location irrelevant, but since I often add and remove entries it made my start thinking about it. :-)
> Is it some kind of homage to UNIX
this!
I doubt it though!
http://blogs.msdn.com/b/oldnewthing/archive/2004/11/16/25822...
Windows used to, and perhaps even still does, incorporate some bsd-licensed code in its network stack. That's a plausible explanation for the unixy path to the hosts file.