1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 01:18:00 +01:00
tldr/pages/common/file.md

20 lines
424 B
Markdown
Raw Normal View History

2015-12-29 04:47:17 +01:00
# file
> Determine file type.
2015-12-29 04:47:17 +01:00
- Give a description of the type of the specified file. Works fine for files with no file extension:
2015-12-29 04:47:17 +01:00
2015-12-29 06:33:04 +01:00
`file {{filename}}`
2015-12-29 04:47:17 +01:00
- Look inside a zipped file and determine the file type(s) inside:
2015-12-29 04:47:17 +01:00
2015-12-29 06:33:04 +01:00
`file -z {{foo.zip}}`
2016-01-08 10:15:59 +01:00
2016-01-13 12:04:46 +01:00
- Allow file to work with special or device files:
2016-01-08 10:15:59 +01:00
`file -s {{filename}}`
2016-01-13 12:04:46 +01:00
- Don't stop at first file type match; keep going until the end of the file:
2016-01-08 10:15:59 +01:00
`file -k {{filename}}`