logoalt Hacker News

MarsIronPItoday at 1:37 AM6 repliesview on HN

I'd just like to interject for a moment. What you're referring to as Linux is in fact not the origin of the "everything is a file". More properly, "everything is a file" is a Unix concept and Unix's creators deserve credit for the idea. Though Plan9 carries it out much better: Unix networking isn't file-based, Plan9's is.

Sorry, I couldn't resist.


Replies

zahlmantoday at 1:54 AM

I was thinking more along the lines of "what you're referring to as Windows is in fact Copilot/Windows"....

show 1 reply
netbsduserstoday at 11:09 AM

Plan 9 implements some sort of "everything has a directory entry" concept. Sockets are files already in Unix. "Everything is a file" in Unix means they have a uniform treatment as file descriptors. Its perfection is probably in Capsicum where when you create a new process, you get a process file descriptor referring to it instead of a PID.

show 1 reply
beAbUtoday at 8:09 AM

did you remember to push your glasses up your nose bridge before writing your comment

show 2 replies
pjmlptoday at 8:33 AM

While UNIX is famous for everything is a file, in reality this concept is only true in Plan 9, in UNIX IPC not everything is a file.

Sorry, I couldn't resist. :)

direwolf20today at 7:23 AM

Not everything is a file, in linux or unix.

DiscourseFantoday at 2:07 AM

[flagged]

show 1 reply