tldr/pages/common/file.md
Igor Shubovych ca1e589c64 Merge pull request #644 from jamswat/file
file: add -k and -s
2016-01-09 11:28:54 +02:00

424 B

file

Determine file type.

  • Give a description of the type of the specified file. Works fine for files with no file extension:

file {{filename}}

  • 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 {{filename}}

  • Don't stop at first file type match; keep going until the end of the file.

file -k {{filename}}