filetype(1)

filetype1

Infer file type and mime type of any file/buffer.

Usage

usage: filetype [-h] [-v] file [file ...]

Determine type of FILEs.

Overview

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.

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From python3-filetype 1.2.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.