I use the file command to determine file types, it has a huge database.
Usage: file [OPTION]... [FILE]...
Pardon me, I don't know which package installs this binary, it is very useful nevertheless.
You probably already have it.
I use the file command to determine file types, it has a huge database.
Usage: file [OPTION]... [FILE]...
Pardon me, I don't know which package installs this binary, it is very useful nevertheless.
You probably already have it.
The problem with file is that it returns a non-uniform and non-parsable data. Its output is readable for a human but not for a computer.
EDIT: I see it has a -i option which outputs mime-type instead of human readable strings. That's more interesting.
Bookmarks