5 ms·
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?
- bhartzer 13y agoWhere do you think it should be? Back at %WinDir%\HOSTS or somewhere else? Does it really matter where it is, anyway?
- junto 13y agoI just was interested to know if anyone here knew the history of the decision. Is 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. :-)
- buckyball 13y agoI really wanted to ask this many times. > Is it some kind of homage to UNIX this!
- zura 13y agoThat. And also mysterious "Xerox" directory, up to and including XP :)
- stevekemp 13y agoThat at least has been answered, on Raymond Chen's excellent blog: http://blogs.msdn.com/b/oldnewthing/archive/2004/11/16/258220.aspx http://blogs.msdn.com/b/oldnewthing/archive/2004/11/16/25822...
- bjourne 13y agohttp://www.kuro5hin.org/?op=displaystory;sid=2001/6/19/05641/7357 http://www.kuro5hin.org/?op=displaystory;sid=2001/6/19/05641... 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.