Linux - Determine file type

October 2016

Under the system Unix and Linux, the file extension does not have any importance, i.e a file named file.jpg can even be an HTML page like a sound file under format WAV which can be accessed with the existing under the Operating system.

*To know the type of file, run the command:

File filename

Related :

This document entitled « Linux - Determine file type » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.