You can check the type of a file through the file command, the syntax of which is as follows: $ file [OPTIONS] target-file