1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 22:02:07 +02:00
tldr/pages/common/file.md
pixel 263508cd44
*: replace file(s) syntax and add path/to/ to more things (#9592)
* Fix file(s) and more path/to

* Update pages.it/common/rm.md

Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>

* thanks emily your suggestion was dogshit

https://github.com/tldr-pages/tldr/blob/main/contributing-guides/translation-templates/common-arguments.md

Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
2022-12-06 16:47:56 +10:00

24 lines
557 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 {{foo.zip}}`
- Allow file to work with special or device files:
`file -s {{path/to/file}}`
- Don't stop at first file type match; keep going until the end of the file:
`file -k {{path/to/file}}`
- Determine the MIME encoding type of a file:
`file -i {{path/to/file}}`