{"id":54422,"date":"2023-06-22T10:17:16","date_gmt":"2023-06-22T02:17:16","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=54422"},"modified":"2023-06-22T10:17:16","modified_gmt":"2023-06-22T02:17:16","slug":"linux-file","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-file.html","title":{"rendered":"\u6d45\u8c08Linux\u4e0bfile\u7684\u5e94\u7528\u5b9e\u4f8b"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nfile\u662f\u901a\u8fc7\u67e5\u770b\u6587\u4ef6\u7684\u5934\u90e8\u4fe1\u606f\u6765\u83b7\u53d6\u6587\u4ef6\u7c7b\u578b\uff0c\u800c\u4e0d\u662f\u50cfWindows\u901a\u8fc7\u6269\u5c55\u540d\u6765\u786e\u5b9a\u6587\u4ef6\u7c7b\u578b\u7684\uff0c\u6240\u4ee5\u52a0\u4e0d\u52a0\u540e\u7f00\u771f\u7684\u65e0\u6240\u8c13\uff0c\u8c01\u4f1a\u7231\u4e0a\u8c01\uff0c\u8bf4\u8d77Windows\u5417\uff0c\u5565\u4e5f\u4e0d\u8bf4\u4e86\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u7b80\u4ecb<\/strong><\/div>\n

\"\"<\/p>\n

file\u7684\u5b98\u65b9\u89e3\u91ca\u4e3a\uff1a<\/p>\n

file\u00a0-\u00a0determine\u00a0file\u00a0type<\/pre>\n

\u4e5f\u5c31\u662f\u8bf4\u53ef\u4ee5\u8bc6\u522b\u6587\u4ef6\u7c7b\u578b\u7684\u610f\u601d\uff0c\u4e5f\u53ef\u7528\u6765\u8fa8\u522b\u4e00\u4e9b\u6587\u4ef6\u7684\u7f16\u7801\u683c\u5f0f\u3002<\/p>\n

\u5b9e\u4f8b<\/strong><\/div>\n

\u4e0b\u9762\u770b\u51e0\u4e2a\u6bd4\u8f83\u4f7f\u7528\u7684\u4f8b\u5b50\u3002<\/p>\n

\u5b9e\u4f8b\u4e00 \uff1a\u9ed8\u8ba4<\/strong><\/span><\/div>\n

file\u540e\u76f4\u63a5\u8ddf\u6587\u4ef6\uff0c\u5f97\u5230\u5982\u4e0b\u6240\u793a\u4fe1\u606f<\/p>\n

file\u00a0book.pdf\r\ndelete.pdf:\u00a0PDF\u00a0document,\u00a0version\u00a01.3\r\nfile\u00a0book\r\ndelete:\u00a0PDF\u00a0document,\u00a0version\u00a01.3\r\n<\/pre>\n

\u53ef\u4ee5\u770b\u51fa\u52a0\u4e0d\u52a0\u540e\u7f00\u90fd\u662f\u6ca1\u6709\u5173\u7cfb\u7684\u3002<\/p>\n

\u5b9e\u4f8b\u4e8c\uff1a\u4e0d\u663e\u793a\u540d\u79f0<\/strong><\/span><\/div>\n
\u279c\u00a0file\u00a0-b\u00a0book.pdf\r\n PDF\u00a0document,\u00a0version\u00a01.3\r\n<\/pre>\n

\u52a0\u4e0a-b\u53c2\u6570\uff0c\u662fbrief\u7684\u542b\u4e49\uff0c\u5c06\u53ea\u663e\u793a\u6587\u4ef6\u8fa8\u8bc6\u7ed3\u679c\uff0c\u4e0d\u663e\u793a\u6587\u4ef6\u540d\u79f0\u4e86\uff0c\u8fd9\u4e2a\u5176\u5b9e\u5bf9\u4e8e\u5f88\u591a\u6587\u4ef6\u800c\u8a00\uff0c\u4e0d\u662f\u5f88\u53cb\u597d\u3002<\/p>\n

\u5b9e\u4f8b\u4e09\uff1a\u8f93\u51fa\u6613\u61c2\u4fe1\u606f<\/strong><\/span><\/div>\n
\u279c\u00a0\u00a0file\u00a0-i\u00a0delete.pdf\r\ndelete.pdf:\u00a0application\/pdf;\u00a0charset=binary\r\n<\/pre>\n

\u52a0\u4e0a-i\u53c2\u6570\uff0c\u662fmime\u7c7b\u578b\u7684\u542b\u4e49\uff0c\u6211\u4e5f\u4e0d\u61c2\u662f\u5565\u610f\u601d\uff0c\u4f46\u662f\u6211\u80fd\u521a\u65b9\u4fbf\u5730\u8bfb\u61c2\u6211\u60f3\u77e5\u9053\u7684\u6587\u4ef6\u7c7b\u578b\u7684\u542b\u4e49\u3002\u8fd9\u5c31\u591f\u4e86\uff0c\u4e0d\u662f\u5417\uff0c\u6bd5\u7adf\u6211\u4eec\u662f\u6765\u662f\u7528file\u547d\u4ee4\u7684\u3002<\/p>\n

\u5b9e\u4f8b\u56db\uff1a\u67e5\u770b\u6587\u4ef6\u4e2d\u7684\u6587\u4ef6\u540d\u7684\u6587\u4ef6\u4fe1\u606f<\/strong><\/span><\/div>\n
\u279c\u00a0\u00a0cat\u00a0hello.txt\r\nsunset.jpg\r\n\u279c\u00a0\u00a0file\u00a0-f\u00a0hello.txt\r\nsunset.jpg:\u00a0JPEG\u00a0image\u00a0data,\u00a0JFIF\u00a0standard\u00a01.01\r\n<\/pre>\n

\u8fd9\u4e2a\u548b\u542c\u7740\u8fd9\u4e48\u62d7\u53e3\uff0c\u5176\u5b9e\u5f88\u7b80\u5355\uff0c\u5176\u5b9e\u5e76\u4e0d\u96be\uff0c\u52a0\u4e0a-f\u53c2\u6570\uff0c\u662ffile-from\u7c7b\u578b\u7684\u542b\u4e49\uff0c\u5230\u5e95\u662f\u51e0\u4e2a\u610f\u601d\u5462\uff0c\u4e5f\u5c31\u662f\u4f60\u60f3\u67e5\u770b\u6587\u4ef6\u7684\u7c7b\u578b\u4fe1\u606f\u7684\u6587\u4ef6\u540d\u5728\u4e00\u4e2a\u6587\u4ef6\u91cc\u9762\uff0c\u4ece\u8fd9\u4e2a\u6587\u4ef6\u91cc\u9762\u8bfb\u53d6\u6587\u4ef6\u6765\u7684\u5230\u4fe1\u606f\uff0c\u5982\u4e0b\u5373\u53ef\u6653\u5f97\u3002<\/p>\n

\u5b9e\u4f8b\u4e94\uff1a\u597d\u770b\u7684\u9e21\u808b<\/strong><\/span><\/div>\n
\u279c\u00a0\u00a0file\u00a0-F\u00a0===\u00a0\"sunset.jpg\u00a0sunset.jpg\u00a0===\u00a0\u00a0JPEG\u00a0image\u00a0data,\u00a0JFIF\u00a0standard\u00a01.01<\/pre>\n

\u8fd9\u4e2a\u529f\u80fd\u8bf4\u5b9e\u8bdd\uff0c\u6ca1\u641e\u660e\u767d\u6709\u4ec0\u4e48\u4f5c\u7528\uff0c\u9ed8\u8ba4\u7684:\u611f\u89c9\u633a\u597d\u7528\u7684\uff0c\u5f53\u7136\u8fd9\u4e2a\u5e94\u8be5\u5c5e\u4e8e\u5b9a\u5236\u578b\u7684\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

\u5b9e\u4f8b\u516d\uff1a\u67e5\u770b\u8f6f\u94fe\u63a5\u7684\u6587\u4ef6\u4fe1\u606f<\/strong><\/span><\/div>\n
\u279c\u00a0\u00a0file\u00a0a.jpg\u00a0a.jpg:\u00a0symbolic\u00a0link\u00a0to<\/span>\u00a0`sunset.jpg'\r\n\u279c\u00a0\u00a0file\u00a0-L\u00a0a.jpg\u00a0a.jpg:\u00a0JPEG\u00a0image\u00a0data,\u00a0JFIF\u00a0standard\u00a01.01<\/pre>\n

\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u6ca1\u6709L\u53c2\u6570\uff0c\u53ea\u80fd\u5f97\u5230\u8fd9\u4e2a\u6587\u4ef6\u662f\u8f6f\u94fe\u63a5\u7684\u4fe1\u606f\uff0c\u5982\u679c\u52a0\u4e0a\u8fd9\u4e2a\u53c2\u6570\uff0c\u5c31\u80fd\u770b\u5230\u6e90\u6587\u4ef6\u7684\u6587\u4ef6\u4fe1\u606f\uff0c\u8fd9\u4e2a\u529f\u80fd\u8fd8\u662f\u5f88\u8d5e\u7684\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/os.51cto.com\/art\/201703\/533896.htm<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1a http:\/\/lrxjmw.cn\/linux-file.html<\/a>\u7f16\u8f91\u5458\uff1a\u90dd\u5927\u53d1\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb file\u662f\u901a\u8fc7\u67e5\u770b\u6587\u4ef6\u7684\u5934\u90e8\u4fe1\u606f\u6765\u83b7\u53d6\u6587\u4ef6\u7c7b\u578b\uff0c\u800c\u4e0d\u662f\u50cfWindows\u901a\u8fc7\u6269\u5c55\u540d\u6765\u786e\u5b9a\u6587\u4ef6\u7c7b\u578b\u7684\uff0c\u6240\u4ee5\u52a0 […]<\/p>\n","protected":false},"author":63,"featured_media":55205,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-54422","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/54422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=54422"}],"version-history":[{"count":11,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/54422\/revisions"}],"predecessor-version":[{"id":275535,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/54422\/revisions\/275535"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/55205"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=54422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=54422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=54422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}