mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-20 08:17:53 +03:00
mimetype: add page (#3169)
This commit is contained in:
parent
78157e5cfe
commit
0c3b3d9f16
31
pages/linux/mimetype.md
Normal file
31
pages/linux/mimetype.md
Normal file
@ -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}}`
|
Loading…
Reference in New Issue
Block a user