4 ms·
> I realize that the UNIX philosophy (everything is a file) is dead Was it ever alive? As far as I know lo0, eth0 and others where never accessible as a file i
by Znafon 7y ago
> I realize that the UNIX philosophy (everything is a file) is dead
Was it ever alive? As far as I know lo0, eth0 and others where never accessible as a file interface and we still rely on them. Is there something to gain to give them a name on the filesystem?
- jlokier 7y agoThey actually are accessible as a file interface: ls /sys/class/net You can't read and write packets via the interface, but there are configuration knobs and statistics you can access. I think it's quite messy and inconsistent that some network interface attributes are only in sysfs, and others are only accessible via AF_NETLINK (usually via the "ip" tool). But it's there.