table of contents
FILETYPE(1) | User Commands | FILETYPE(1) |
NAME¶
filetype - Infer file type and MIME type of any file/buffer.
DESCRIPTION¶
Currently, the following patterns are recognised:
- Image: bmp, cr2, dwg, gif, heic, ico, jpg, jpx, jxr, png, psd, tif, xcf, webp.
- Video: avi, flv, m4v, mkv, mov, mp4, mpg, webm, wmv, 3gpp.
- Audio: aac, aiff, amr, flac, m4a, mid, mp3, ogg, wav.
- Archive: ar, br, bz2, cab, crx, dcm, deb, eot, epub, exe, gz, lz, lzo, lz4, nes, pdf, ps, rar, rpm, rtf, sqlite, swf, tar, xz, zip, Z, 7z.
- Font: otf, ttf, woff, woff2.
- Application: wasm.
SYNOPSIS¶
usage: filetype [-h] [-v] file [file ...]
Determine type of FILEs.
positional arguments:¶
- file
optional arguments:¶
- -h, --help
- show this help message and exit
- -v, --version
- output version information and exit
January 2022 | filetype 1.0.9 |