knowledge/technology/applications/cli/system/file.md

15 lines
1 KiB
Markdown
Raw Permalink Normal View History

2023-12-04 10:02:23 +00:00
---
obj: application
repo: https://github.com/file/file
wiki: https://en.wikipedia.org/wiki/File_(command)
website: https://darwinsys.com/file
---
# file
2024-01-17 08:00:45 +00:00
determine file / [MIME](../../../files/MIME.md) type
2023-12-04 10:02:23 +00:00
Usage: `file [OPTION] [FILE]...`
## Options
| Option | Description |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `-b, --brief` | Do not prepend filenames to output lines (brief mode) |
| `-i, --mime` | Causes the file command to output mime type strings rather than the more traditional human readable ones. Thus it may say text/plain; charset=us-ascii rather than "ASCII text" |