|
|
1.1 ! root 1: .TH FILE 1 ! 2: .SH NAME ! 3: file \- determine file type ! 4: .SH SYNOPSIS ! 5: .B file ! 6: [ ! 7: .I file ! 8: \&... ! 9: ] ! 10: .SH DESCRIPTION ! 11: .I File ! 12: performs a series of tests on its argument ! 13: .I files ! 14: in an attempt to classify their contents by language or purpose. ! 15: If no arguments are given, the classification is performed ! 16: on standard input. ! 17: .PP ! 18: The file types it looks for include ! 19: directory, ! 20: device file, ! 21: zero-filled file, ! 22: empty file, ! 23: Plan 9 executable, ! 24: PAC audio file, ! 25: .B cpio ! 26: archive, ! 27: .B tex ! 28: .B dvi ! 29: file, ! 30: archive symbol table, ! 31: archive, ! 32: .B rc ! 33: script, ! 34: .B sh ! 35: script, ! 36: PostScript, ! 37: .B troff ! 38: output file for various devices, ! 39: GIF, ! 40: FAX, ! 41: .IR picfile (9.6), ! 42: object code, ! 43: C and Alef source, ! 44: assembler source, ! 45: compressed files, ! 46: encrypted file, ! 47: English text, ! 48: Plan 9 bitmap, ! 49: Plan 9 subfont, ! 50: Plan 9 font. ! 51: .PP ! 52: If a file has no apparent format, ! 53: .I file ! 54: looks at the character set it uses to classify it according to ! 55: .SM ASCII\c ! 56: , ! 57: extended ! 58: .SM ASCII\c ! 59: , Latin ! 60: .SM ASCII\c ! 61: , or ! 62: .SM UTF ! 63: holding one or more of the following blocks of the Unicode Standard: ! 64: Extended Latin, ! 65: Greek, ! 66: Cyrillic, ! 67: Armenian, ! 68: Hebrew, ! 69: Arabic, ! 70: Devanagari, ! 71: Bengali, ! 72: Gurmukhi, ! 73: Gujarati, ! 74: Oriya, ! 75: Tamil, ! 76: Telugu, ! 77: Kannada, ! 78: Malayalam, ! 79: Thai, ! 80: Lao, ! 81: Tibetan, ! 82: Georgian, ! 83: Japanese, ! 84: Chinese, ! 85: or Korean. ! 86: .PP ! 87: If all else fails, ! 88: .I file ! 89: decides its input is ! 90: binary. ! 91: .SH SOURCE ! 92: .B /sys/src/cmd/file.c ! 93: .SH BUGS ! 94: It can make mistakes, for example classifying a file of decimal data, ! 95: .LR .01 , ! 96: .LR .02 , ! 97: etc. as ! 98: .IR troff (1) ! 99: input.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.