Determine file type. More information: https://manned.org/file.
file path/to/file
file -z foo.zip
file -s path/to/file
file -k path/to/file
file -i path/to/file