From 0c3b3d9f16846c7882a0c0649b9c473034f8cf62 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 4 Jul 2019 09:03:38 +0100 Subject: [PATCH] mimetype: add page (#3169) --- pages/linux/mimetype.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pages/linux/mimetype.md diff --git a/pages/linux/mimetype.md b/pages/linux/mimetype.md new file mode 100644 index 0000000000..e6de211e73 --- /dev/null +++ b/pages/linux/mimetype.md @@ -0,0 +1,31 @@ +# mimetype + +> Automatically determine the MIME type of a file. + +- Print the MIME type of a given file: + +`mimetype {{path/to/file}}` + +- Display only the MIME type, and not the filename: + +`mimetype --brief {{path/to/file}}` + +- Display a description of the MIME type: + +`mimetype --describe {{path/to/file}}` + +- Determine the MIME type of stdin (does not check a filename): + +`{{some_command}} | mimetype --stdin` + +- Display debug information about how the MIME type was determined: + +`mimetype --debug {{path/to/file}}` + +- Display all the possible MIME types of a given file in confidence order: + +`mimetype --all {{path/to/file}}` + +- Explicitly specify the 2-letter language code of the output: + +`mimetype --language {{path/to/file}}`