knowledge/technology/applications/cli/system/file.md
2024-01-17 09:00:45 +01:00

15 lines
No EOL
1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
obj: application
repo: https://github.com/file/file
wiki: https://en.wikipedia.org/wiki/File_(command)
website: https://darwinsys.com/file
---
# file
determine file / [MIME](../../../files/MIME.md) type
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" |