OS Manuals

/usr/bin/puremagic

puremagic command-line tool for python3.13

From py3.13-puremagic-2-bin 2.2.0-r2 (os), captured 2026-11-05 by running puremagic --help (exit 0). permalink

usage: puremagic [-h] [-m] [-v] [-e EXTENSION] [--version] [files ...]

puremagic is a pure python file identification module. It looks for matching magic numbers in the
file to locate the file type.

positional arguments:
  files

options:
  -h, --help            show this help message and exit
  -m, --mime            Return the mime type instead of file type
  -v, --verbose         Print verbose output
  -e, --extension EXTENSION
                        Look up MIME type for a file extension (e.g. pdf or .pdf)
  --version             show program's version number and exit
Options (5)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
-m, --mimeReturn the mime type instead of file typehelp
-v, --verbosePrint verbose outputhelp
-e, --extension EXTENSIONLook up MIME type for a file extension (e.g. pdf or .pdf)help
--versionshow program's version number and exithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.