file command

$ file --version
file-5.24
magic file from /usr/share/file/misc/magic