{"id":769,"date":"2019-04-22T23:34:10","date_gmt":"2019-04-22T15:34:10","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=769"},"modified":"2022-05-24T15:06:49","modified_gmt":"2022-05-24T07:06:49","slug":"file","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/file","title":{"rendered":"file\u547d\u4ee4 – \u8bc6\u522b\u6587\u4ef6\u7c7b\u578b"},"content":{"rendered":"\n
file\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u8bc6\u522b\u6587\u4ef6\u7684\u7c7b\u578b\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u8fa8\u522b\u4e00\u4e9b\u5185\u5bb9\u7684\u7f16\u7801\u683c\u5f0f\u3002\u7531\u4e8eLinux\u7cfb\u7edf\u5e76\u4e0d\u662f\u50cfWindows\u7cfb\u7edf\u90a3\u6837\u901a\u8fc7\u6269\u5c55\u540d\u6765\u5b9a\u4e49\u6587\u4ef6\u7c7b\u578b\uff0c\u56e0\u6b64\u7528\u6237\u65e0\u6cd5\u76f4\u63a5\u901a\u8fc7\u6587\u4ef6\u540d\u6765\u8fdb\u884c\u5206\u8fa8\u3002file\u547d\u4ee4\u5219\u662f\u4e3a\u4e86\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u901a\u8fc7\u5206\u6790\u6587\u4ef6\u5934\u90e8\u4fe1\u606f\u4e2d\u7684\u6807\u8bc6\u6765\u663e\u793a\u6587\u4ef6\u7c7b\u578b\uff0c\u4f7f\u7528\u5f88\u65b9\u4fbf\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>file [\u53c2\u6570] \u6587\u4ef6<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b:<\/strong><\/p>\n\n\n\n \u67e5\u770b\u67d0\u4e9b\u6587\u4ef6\u7684\u7c7b\u578b\uff1a <\/p>\n\n\n\n \u67e5\u770b\u67d0\u4e2a\u6587\u4ef6\u7684\u7c7b\u578b\uff0c\u4f46\u4e0d\u663e\u793a\u6587\u4ef6\u540d\uff1a<\/p>\n\n\n\n \u4ee5MIME\u7c7b\u522b\u6765\u663e\u793a\u67d0\u4e2a\u6587\u4ef6\u7684\u7c7b\u578b\uff1a<\/p>\n\n\n\n \u67e5\u770b\u67d0\u4e2a\u7b26\u53f7\u94fe\u63a5\u6587\u4ef6\uff08\u5feb\u6377\u65b9\u5f0f\uff09\u7684\u7c7b\u578b\uff0c\u4f1a\u63d0\u793a\u76ee\u6807\u6587\u4ef6\u540d\u79f0\uff1a<\/p>\n\n\n\n \u76f4\u63a5\u67e5\u770b\u67d0\u4e2a\u7b26\u53f7\u94fe\u63a5\u6587\u4ef6\uff08\u5feb\u6377\u65b9\u5f0f\uff09\u6240\u5bf9\u5e94\u7684\u76ee\u6807\u6587\u4ef6\u7684\u6587\u4ef6\u7c7b\u578b\uff1a<\/p>\n\n\n\n file\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u8bc6\u522b\u6587\u4ef6\u7684\u7c7b\u578b\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u8fa8\u522b\u4e00\u4e9b\u5185\u5bb9\u7684\u7f16\u7801\u683c\u5f0f\u3002\u7531\u4e8eLinux\u7cfb\u7edf\u5e76\u4e0d\u662f\u50cfWindo […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/769"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=769"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/769\/revisions"}],"predecessor-version":[{"id":9987,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/769\/revisions\/9987"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-b<\/td> \u5217\u51fa\u8fa8\u8bc6\u7ed3\u679c\u65f6\uff0c\u4e0d\u663e\u793a\u6587\u4ef6\u540d\u79f0 (\u7b80\u8981\u6a21\u5f0f)<\/td><\/tr> -c<\/td> \u8be6\u7ec6\u663e\u793a\u6307\u4ee4\u6267\u884c\u8fc7\u7a0b<\/td><\/tr> -f<\/td> \u6307\u5b9a\u540d\u79f0\u6587\u4ef6\uff0c\u663e\u793a\u591a\u4e2a\u6587\u4ef6\u7c7b\u578b\u4fe1\u606f<\/td><\/tr> -L<\/td> \u76f4\u63a5\u663e\u793a\u7b26\u53f7\u8fde\u63a5\u6240\u6307\u5411\u7684\u6587\u4ef6\u7c7b\u522b <\/td><\/tr> -m<\/td> \u6307\u5b9a\u9b54\u6cd5\u6570\u5b57\u6587\u4ef6 <\/td><\/tr> -v<\/td> \u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr> -z<\/td> \u5c1d\u8bd5\u53bb\u89e3\u8bfb\u538b\u7f29\u6587\u4ef6\u7684\u5185\u5bb9<\/td><\/tr> -i<\/td> \u663e\u793aMIME\u7c7b\u522b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# file anaconda-ks.cfg <\/strong>\nanaconda-ks.cfg: ASCII text\n[root@linuxcool ~]# file \/dev\/sda<\/strong>\n\/dev\/sda: block special (8\/0)\n[root@linuxcool ~]# file Documents<\/strong>\nDocuments: directory\n[root@linuxcool ~]# file \/bin\/ls<\/strong>\n\/bin\/ls: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter \/lib64\/ld-linux-x86-64.so.2, for GNU\/Linux 3.2.0, BuildID[sha1]=937708964f0f7e3673465d7749d6cf6a2601dea2, stripped, too many notes (256)<\/pre>\n\n\n\n
[root@linuxcool ~]# file -b anaconda-ks.cfg <\/strong>\nASCII text<\/pre>\n\n\n\n
[root@linuxcool ~]# file -i anaconda-ks.cfg <\/strong>\nanaconda-ks.cfg: text\/plain; charset=us-ascii\n<\/pre>\n\n\n\n
[root@linuxcool ~]# file \/dev\/cdrom<\/strong>\n\/dev\/cdrom: symbolic link to sr0\n<\/pre>\n\n\n\n
[root@linuxcool ~]# file -L \/dev\/cdrom<\/strong>\n\/dev\/cdrom: block special (11\/0)\n<\/pre>\n","protected":false},"excerpt":{"rendered":"