TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why is “Everything is a File” unique to Unix operating systems?

51 pointsby sathyabhatover 13 years ago

4 comments

ralfdover 13 years ago
On the linked superuser site there is repeatedly mentioned that Mac OS X is build "on top" of Unix. This is not quite right. OS X has a BSD userland, but in many ways its developers thought differently.<p>For example "/dev/audio" doesn't exist on OS X. CoreAudio is taking a different route than the "everything is a file" Unix approach.
评论 #3310459 未加载
评论 #3310776 未加载
评论 #3313685 未加载
JoeAltmaierover 13 years ago
It may be handy at one level to treat everything as a file. But squashing complex objects through the file api is a hack. I'd hope somebody had some better ideas in the last 20 years.
评论 #3312627 未加载
评论 #3310964 未加载
joe_the_userover 13 years ago
Googling on the topic, I found: <a href="http://www.linuxtopia.org/online_books/programming_books/art_of_unix_programming/ch03s02_3.html" rel="nofollow">http://www.linuxtopia.org/online_books/programming_books/art...</a><p>An interesting discussion of how Window NT's lack of everything-is-a-file and standard command line tools metastasizes into a security and configuration nightmare. It gives an idea of how important unix's the <i>unifying metaphors</i> are for creating a good operating system.
评论 #3310441 未加载
评论 #3311419 未加载
Craiggybearover 13 years ago
In DOS everything was a file too. Its not just *nix.
评论 #3312482 未加载