mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
split file command as it takes different args on macOS
This commit is contained in:
parent
fcd411eafc
commit
13aebf0c20
2 changed files with 24 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Determine file type.
|
||||
|
||||
- Give a description of the type of the specified file. Works fine for files with no file extension:
|
||||
- Give a description of the type of the specified file. Works fine for files with no file extension:
|
||||
|
||||
`file {{filename}}`
|
||||
|
23
pages/osx/file.md
Normal file
23
pages/osx/file.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# 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}}`
|
||||
|
||||
- Determine the mime encoding type of a file:
|
||||
|
||||
`file -I {{filename}}`
|
Loading…
Add table
Reference in a new issue