📄 readme
字号:
** README for file(1) Command **@(#) /projects/agile/cvs/harvest/src/gatherer/essence/file/README,v 1.1.1.1 1994/04/26 19:07:46 hardy ExpThis is Ian Darwin's (copyright but distributable) file(1)command. It follows the USG (Sys V) model of the file command,rather than the Research (V7) version or the V7-derived Berkeleyone. That is, there is a file (/etc/magic) that contains muchof the ritual information that is the source of this program'spower. It knows a little more magic (including tar archives)than System V; the /etc/magic parsing seems to be compatiblewith the (poorly documented) System V /etc/magic format (withone exception; see the man page).In addition, the /etc/magic file is built from a subdirectoryfor easier maintenance. I will act as a clearinghouse formagic numbers assigned to all sorts of data files thatare in reasonable circulation. Send your magic numbers,in magic(4) format please, to the author, Ian Darwin,{utzoo|ihnp4}!darwin!ian, ian@sq.com. LEGAL.NOTICE - read this first.README - read this second (you are currently reading this file).PORTING - read this only if the program won't compile.Makefile - read this next, adapt it as needed (particularly the location of the old existing file command and the man page layouts), type "make" to compile, "make try" to try it out against your old version. Expect some diffs, particularly since your original file(1) may not grok the imbedded-space ("\ ") in the current magic file, or may even not use the magic file.apprentice.c - parses /etc/magic to learn magicascmagic.c - third & last set of tests, based on hardwired assumptions.core - not included in distribution due to mailer limitations.debug.c - includes -c printout routinefile.1 - man page for the commandmagic.4 - man page for the magic file, courtesy Guy Harris. Install as magic.4 on USG and magic.5 on V7 or Berkeley; cf Makefile.file.c - main programfile.h - header filefsmagic.c - first set of tests the program runs, based on filesystem infois_tar.c - knows about tarchives (courtesy John Gilmore).magdir - directory of /etc/magic piecesnames.h - header file for ascmagic.csoftmagic.c - 2nd set of tests, based on /etc/magicstrtok.c, getopt.c - in case you them (courtesy of Henry Spencer).strtol.c, strchr.c - in case you need them - public domain.tst - simple test suite, built from tst/Makefile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -