TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

51 点作者 sathyabhat超过 13 年前

4 条评论

ralfd超过 13 年前
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 未加载
JoeAltmaier超过 13 年前
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_user超过 13 年前
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 未加载
Craiggybear超过 13 年前
In DOS everything was a file too. Its not just *nix.
评论 #3312482 未加载