1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/file.md

24 lines
630 B
Markdown

# file
> Determine file type.
> More information: <https://manned.org/file>.
- Give a description of the type of the specified file. Works fine for files with no file extension:
`file {{path/to/file}}`
- Look inside a zipped file and determine the file type(s) inside:
`file {{[-z|--uncompress]}} {{foo.zip}}`
- Allow file to work with special or device files:
`file {{[-s|--special-files]}} {{path/to/file}}`
- Don't stop at first file type match; keep going until the end of the file:
`file {{[-k|--keep-going]}} {{path/to/file}}`
- Determine the MIME encoding type of a file:
`file {{[-i|--mime]}} {{path/to/file}}`