Determine file types by examining contents and magic numbers
Utility to determine file types
file
$ file document.pdf
$ file * | grep -i image
$ file -i archive.tar.gz