mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
24 lines
607 B
Markdown
24 lines
607 B
Markdown
# file
|
|
|
|
> 确定文件类型。
|
|
> 更多信息:<https://manned.org/file>.
|
|
|
|
- 提供指定文件类型的描述,对于没有文件扩展名的文件可以正常工作:
|
|
|
|
`file {{文件名}}`
|
|
|
|
- 查看压缩文件并确定其中的文件类型:
|
|
|
|
`file {{[-z|--uncompress]}} {{xxx.zip}}`
|
|
|
|
- 允许文件与特殊文件或设备文件一起使用:
|
|
|
|
`file {{[-s|--special-files]}} {{文件名}}`
|
|
|
|
- 不要在第一个文件类型匹配时停止;继续执行直到文件结束:
|
|
|
|
`file {{[-k|--keep-going]}} {{文件名}}`
|
|
|
|
- 确定文件的 MIME 编码类型:
|
|
|
|
`file {{[-i|--mime]}} {{文件名}}`
|