diff options
author | Valtteri Koskivuori <vkoskiv@gmail.com> | 2021-05-07 17:59:49 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-07 16:29:58 +0100 |
commit | 09ea57031f67634c057c808323cc9e626ec1304c (patch) | |
tree | 41f68b08791e671a49e85f235ddceef84a457ab8 /Base | |
parent | 336a79a4521d964a5c2ed01d2e82d45b2d2a5d8a (diff) | |
download | serenity-09ea57031f67634c057c808323cc9e626ec1304c.zip |
Base: Add manpage for file(1)
Diffstat (limited to 'Base')
-rw-r--r-- | Base/usr/share/man/man1/file.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/file.md b/Base/usr/share/man/man1/file.md new file mode 100644 index 0000000000..be37db78c8 --- /dev/null +++ b/Base/usr/share/man/man1/file.md @@ -0,0 +1,35 @@ +## Name + +file - determine type of files + +## Synopsis + +```**sh +$ file [options...] [files...] +``` + +## Description + +`file` attempts to identify the type of files. + +First, an attempt is made to identify a given file based on predetermined binary patterns. If this fails, `file` will fall back to determining the type based on the filename. + +## Options + +* `--help`: Display this message +* `-I`, `--mime-type`: Only show mime type. + +## Arguments + +* `files`: Files to identify + +## Examples + +```sh +# Identify a file +$ file Buggie.png +Buggie.png: PNG image data, 64 x 138 +# Identify all files in the current directory, and show only the mime type. +$ย file -I * +``` + |