4 ms·
A note on cat: on older Unixes (I remember it specifically in some old version of solaris), you can actually cat folders, and it will show a directory listing.
by wheybags 6y ago
A note on cat: on older Unixes (I remember it specifically in some old version of solaris), you can actually cat folders, and it will show a directory listing. Iirc in the orogonal unix, read() on a directory fd would just dump out some filesystem internal structs that detailed the folder's contents.
- pacaro 6y agoOlder versions also used "cannot open" as the error message, leading to $ cat 'the can of toona' cat: cannot open: the can of toona