3 ms·
brynet, who posted below, tweeted a pdf-rendered man page for the new openbsd file command: http://brynet.biz.tm/pub/file.1.pdf http://brynet.biz.tm/pub/file.1
by ploxiln 12y ago
brynet, who posted below, tweeted a pdf-rendered man page for the new openbsd file command:
http://brynet.biz.tm/pub/file.1.pdf http://brynet.biz.tm/pub/file.1.pdf
It seems to have all the options I'd ever use. In fact I've never used any options to file (though I do use it to quickly identify a handful of files, often enough).
The only reason OpenBSD does this kind of thing is because they got annoyed with the vulnerabilities in the classic file/libmagic source which everyone seems to use. They probably disliked the code style / organization of the source enough that they didn't want to patch it up (which they also do fairly often for various ports). That said I've never personally looked at the source.
- brynet 12y ago> That said I've never personally looked at the source. I'd say very few people do, which is kind of scary for a utility like file(1), which people feed any random file without giving second thought.