Skip to content

Commit 09ea570

Browse files
vkoskivlinusg
authored andcommitted
Base: Add manpage for file(1)
1 parent 336a79a commit 09ea570

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Base/usr/share/man/man1/file.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## Name
2+
3+
file - determine type of files
4+
5+
## Synopsis
6+
7+
```**sh
8+
$ file [options...] [files...]
9+
```
10+
11+
## Description
12+
13+
`file` attempts to identify the type of files.
14+
15+
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.
16+
17+
## Options
18+
19+
* `--help`: Display this message
20+
* `-I`, `--mime-type`: Only show mime type.
21+
22+
## Arguments
23+
24+
* `files`: Files to identify
25+
26+
## Examples
27+
28+
```sh
29+
# Identify a file
30+
$ file Buggie.png
31+
Buggie.png: PNG image data, 64 x 138
32+
# Identify all files in the current directory, and show only the mime type.
33+
$ file -I *
34+
```
35+

0 commit comments

Comments
 (0)