This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

filetype

    Show extension and MIME type of a file. Supported types are documented here

    Usage:
        ops -filetype [-h] [-e] [-m] FILE
    

    Options

    -h  shows this help
    -e  show file standard extension
    -m  show file mime type
    

    Examples

    File Mime type

    ops -filetype -m `which ops`
    

    This will output the ops executable type: application/x-mach-binary or application/x-executable