fileformat is a tool for file format recognition.

Usage:

fileformat <file> ... [-m | --mime] [--formats <directory>]
    Show format name, format description and format type
    (audio, video, archives, etc.) for specified file(s).

    If '-m' or '--mime' has been used, the program will show
    the MIME type and its description also.

    Format descriptions are contained in a special JSON file,
    the path to which is determined by your Amalthea library distribution.
    If the library is compiled with the ldc2 compiler, the path is:
    /etc/amalthea-ldc2/fileformats.json
    The '--formats' option specifies a directory that stores JSON files
    with descriptions of custom file formats.

    Example:
        $ fileformat image.jpg -m
        Information about the file format and its MIME type will be
        shown for 'image.jpg'.

fileformat --version
    Display the version of the tool.

fileformat --help
    Display this help.

© Eugene 'Vindex' Stulin, 2019-2022, 2024
