|> I recently learned how everything under unix is a "file", whether it
|> be folders, devices, programs, etc. (Correct me if I am wrong) No
|> wonder devices have their own /dev directory. It is actually pretty
|> cool how everything works out in *nix systems.
|> I was wondering if anyone would be able to give a comparison of the
|> file, device, folder etc. structures of *nix, windows/dos, and macOS.
| Well, technically the files in /dev aren't the devices themselves, but links
| to them (or more accurately, "nodes").
| Windows (and DOS) also have devices that are files. CON: PRN: COM1: etc..
| Devices are also accessed via file handles, but the devices are not exposed
| via a file system node. Windows device drivers tend to take a lot more ioctl
| functions than your typical linux devices, but they are basically very similar
| at their core.
Well, actually a lot of those Windows/DOS devices behave as if their
names exist as files in *every* directory.
Try and create a file called 'CON:' and see what happens!
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first: