Subcommands (1)
Options (5)
-b, --briefbooleanDo not print the filepath
Example:
file {{[-b|--brief]}} {{path/to/file}}-z, --uncompressbooleanLook inside a zipped file and determine the file type(s) inside
Example:
file {{[-z|--uncompress]}} {{path/to/file.zip}}-s, --special-filesbooleanAllow `file` to work with special or device files
Example:
file {{[-s|--special-files]}} {{path/to/file}}-k, --keep-goingbooleanDon't stop at first file type match; keep going until the end of the file
Example:
file {{[-k|--keep-going]}} {{path/to/file}}-i, --mimebooleanDetermine the MIME encoding type of a file
Example:
file {{[-i|--mime]}} {{path/to/file}}Examples (6)
Give a description of the type of the specified file
file path/to/fileDo not print the filepath
file [-b|--brief] path/to/fileLook inside a zipped file and determine the file type(s) inside
file [-z|--uncompress] path/to/file.zipAllow `file` to work with special or device files
file [-s|--special-files] path/to/fileDon't stop at first file type match; keep going until the end of the file
file [-k|--keep-going] path/to/fileDetermine the MIME encoding type of a file
file [-i|--mime] path/to/filemade by @shridhargupta | data from tldr-pages