Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 352 Bytes

determine-file-type-or-encoding.md

File metadata and controls

19 lines (12 loc) · 352 Bytes

Determine File Type Or Encoding

Category: Mac

You may need to determine the file type or encoding for files which are missing an extension.

To show this for a file, run the following command:

file -I /path/to/file

Example output:

/path/to/file: image/png; charset=binary

The same command will also work on Linux.