112 lines · 1.4 KB · Text
RawDownload
.TH FILE 1.SH NAMEfile \- determine file type.SH SYNOPSIS.B file[.B -m][.I file\&...].SH DESCRIPTION.I Fileperforms a series of tests on its argument.I filesin an attempt to classify their contents by language or purpose.If no arguments are given, the classification is performedon standard input..PPIf the.B -mflag is given, .I fileoutputs anappropriate MIME.B Content-Typespecification describing the.B typeand.B subtypeof each file..PPThe file types it looks for includedirectory,device file,zero-filled file,empty file,Plan 9 executable,PAC audio file,.B cpioarchive,.B tex.B dvifile,archive symbol table,archive,.B rcscript,.B shscript,PostScript,.B troffoutput file for various devices,mail box,GIF,FAX,object code,C and Alef source,assembler source,compressed files,encrypted file,English text,compressed image,image,subfont,andfont..PPIf a file has no apparent format,.I filelooks at the character set it uses to classify it according to.SM ASCII\c,extended.SM ASCII\c, Latin.SM ASCII\c, or.SM UTFholding one or more of the following blocks of the Unicode Standard:Extended Latin,Greek,Cyrillic,Armenian,Hebrew,Arabic,Devanagari,Bengali,Gurmukhi,Gujarati,Oriya,Tamil,Telugu,Kannada,Malayalam,Thai,Lao,Tibetan,Georgian,Japanese,Chinese,or Korean..PPIf all else fails,.I filedecides its input isbinary..SH SOURCE.B /sys/src/cmd/file.c.SH BUGSIt can make mistakes.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t