<script type="application/ld+json">{"@context":"http://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.simcentric.com/tc/"},{"@type":"ListItem","position":2,"name":"如何在 Linux 中使用 file 指令確定檔案類型？","item":"https://www.simcentric.com/tc/hong-kong-dedicated-server-tc/how-to-determine-file-types-in-linux-with-the-file-command/"}]}</script> {"id":17614,"date":"2024-10-17T12:18:49","date_gmt":"2024-10-17T04:18:49","guid":{"rendered":"https:\/\/www.simcentric.com\/?p=17614"},"modified":"2024-10-17T13:54:47","modified_gmt":"2024-10-17T05:54:47","slug":"how-to-determine-file-types-in-linux-with-the-file-command","status":"publish","type":"post","link":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/","title":{"rendered":"\u5982\u4f55\u5728 Linux \u4e2d\u4f7f\u7528 file \u6307\u4ee4\u78ba\u5b9a\u6a94\u6848\u985e\u578b\uff1f"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row el_class=&#8221;blog-detail-section&#8221;][vc_column][vc_column_text]<\/p>\n<p>\u5728<a href=\"https:\/\/www.simcentric.com\/tc\/\" target=\"_blank\" rel=\"noopener\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a>\u7ba1\u7406\u9818\u57df\uff0c\u7121\u8ad6\u60a8\u662f\u8655\u7406\u4f3a\u670d\u5668\u79df\u7528\u9084\u662f\u4f3a\u670d\u5668\u8a17\u7ba1\u670d\u52d9\uff0c\u4e86\u89e3\u6a94\u6848\u7684\u6027\u8cea\u90fd\u81f3\u95dc\u91cd\u8981\u3002<a href=\"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-configure-and-use-ipv6-server-on-linux-system\/\" target=\"_blank\" rel=\"noopener\">Linux<\/a> \u7684 &#8216;file&#8217; \u6307\u4ee4\u662f\u7cfb\u7d71\u7ba1\u7406\u54e1\u548c\u958b\u767c\u4eba\u54e1\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u7a2e\u5feb\u901f\u53ef\u9760\u7684\u65b9\u6cd5\u4f86\u78ba\u5b9a\u6a94\u6848\u985e\u578b\u3002\u672c\u6307\u5357\u5c07\u6df1\u5165\u63a2\u8a0e &#8216;file&#8217; \u6307\u4ee4\u7684\u8907\u96dc\u6027\uff0c\u5c55\u793a\u5176\u5728\u9999\u6e2f\u4f3a\u670d\u5668\u4e0a\u8b58\u5225\u6a94\u6848\u985e\u578b\u7684\u5f37\u5927\u529f\u80fd\u3002<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row el_class=&#8221;blog-detail-section&#8221;][vc_column][vc_column_text]<\/p>\n<h2><strong>&#8216;file&#8217; \u6307\u4ee4\u7684\u672c\u8cea<\/strong><\/h2>\n<p>&#8216;file&#8217; \u6307\u4ee4\u7684\u6838\u5fc3\u529f\u80fd\u662f\u6aa2\u67e5\u6a94\u6848\u7684\u5167\u5bb9\uff0c\u4e26\u5617\u8a66\u57fa\u65bc\u5404\u7a2e\u6e2c\u8a66\u5c0d\u5176\u9032\u884c\u5206\u985e\u3002\u5b83\u4e0d\u50c5\u50c5\u95dc\u6ce8\u6a94\u6848\u526f\u6a94\u540d\uff0c\u800c\u662f\u67e5\u770b\u6a94\u6848\u5167\u7684\u5be6\u969b\u8cc7\u6599\u4f86\u505a\u51fa\u5224\u65b7\u3002\u9019\u4f7f\u5f97\u5b83\u5728\u7ba1\u7406\u9999\u6e2f\u4f3a\u670d\u5668\u4e0a\u7684\u5404\u7a2e\u6a94\u6848\u985e\u578b\u6642\u6210\u70ba\u4e00\u500b\u7121\u50f9\u7684\u8cc7\u7522\u3002<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row el_class=&#8221;blog-detail-section&#8221;][vc_column][vc_column_text]<\/p>\n<h2><strong>\u57fa\u672c\u8a9e\u6cd5\u548c\u7528\u6cd5<\/strong><\/h2>\n<p>&#8216;file&#8217; \u6307\u4ee4\u7684\u57fa\u672c\u8a9e\u6cd5\u975e\u5e38\u7c21\u55ae\uff1a<\/p>\n<pre><code>file [\u9078\u9805] \u6a94\u6848\u540d<\/code><\/pre>\n<p>\u8b93\u6211\u5011\u63a2\u7d22\u4e00\u4e9b\u5be6\u969b\u4f8b\u5b50\uff1a<\/p>\n<pre><code>$ file \/etc\/passwd\r\n\/etc\/passwd: ASCII text\r\n\r\n$ file \/bin\/bash\r\n\/bin\/bash: ELF 64-bit LSB shared object, x86-64\r\n\r\n$ file image.jpg\r\nimage.jpg: JPEG image data, JFIF standard 1.01<\/code><\/pre>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row el_class=&#8221;blog-detail-section&#8221;][vc_column][vc_column_text]<\/p>\n<h2><strong>\u9032\u968e &#8216;file&#8217; \u6307\u4ee4\u9078\u9805<\/strong><\/h2>\n<p>\u70ba\u4e86\u63d0\u5347\u60a8\u7684\u4f3a\u670d\u5668\u7ba1\u7406\u6c34\u5e73\uff0c\u8b93\u6211\u5011\u6df1\u5165\u4e86\u89e3\u4e00\u4e9b\u9032\u968e\u9078\u9805\uff1a<\/p>\n<h3>1. \u7372\u53d6 MIME \u985e\u578b (-i)<\/h3>\n<pre><code>$ file -i script.py\r\nscript.py: text\/x-python; charset=us-ascii<\/code><\/pre>\n<h3>2. \u6aa2\u67e5\u58d3\u7e2e\u6a94\u6848 (-z)<\/h3>\n<pre><code>$ file -z compressed.gz\r\ncompressed.gz: ASCII text (gzip compressed data)<\/code><\/pre>\n<h3>3. \u7c21\u6f54\u6a21\u5f0f (-b)<\/h3>\n<pre><code>$ file -b \/etc\/hosts\r\nASCII text<\/code><\/pre>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row el_class=&#8221;blog-detail-section&#8221;][vc_column][vc_column_text]<\/p>\n<h2><strong>\u5728\u9999\u6e2f\u4f3a\u670d\u5668\u4e0a\u7684\u5be6\u969b\u61c9\u7528<\/strong><\/h2>\n<p>\u5728\u7ba1\u7406\u9999\u6e2f\u4f3a\u670d\u5668\u6642\uff0c&#8217;file&#8217; \u6307\u4ee4\u5728\u5404\u7a2e\u5834\u666f\u4e2d\u90fd\u975e\u5e38\u6709\u7528\uff1a<\/p>\n<h3>1. \u9a57\u8b49\u7db2\u9801\u8cc7\u6e90<\/h3>\n<p>\u78ba\u4fdd\u60a8\u7684\u7db2\u8def\u4f3a\u670d\u5668\u63d0\u4f9b\u6b63\u78ba\u7684\u6a94\u6848\u985e\u578b\uff1a<\/p>\n<pre><code>#!\/bin\/bash\r\nfor file in \/var\/www\/html\/*; do\r\n    echo \"$(file -b \"$file\"): $file\"\r\ndone<\/code><\/pre>\n<h3>2. \u65e5\u8a8c\u6a94\u6848\u5206\u6790<\/h3>\n<p>\u5feb\u901f\u8b58\u5225\u65e5\u8a8c\u6a94\u6848\u683c\u5f0f\uff1a<\/p>\n<pre><code>$ file \/var\/log\/*.log<\/code><\/pre>\n<h3>3. \u5b89\u5168\u6aa2\u67e5<\/h3>\n<p>\u9a57\u8b49\u4e0a\u50b3\u7684\u6a94\u6848\u4ee5\u9632\u6b62\u60e1\u610f\u5167\u5bb9\uff1a<\/p>\n<pre><code>#!\/bin\/bash\r\nupload=\"\/path\/to\/upload\/directory\"\r\nfor file in \"$upload\"\/*; do\r\n    if file \"$file\" | grep -qi \"executable\"; then\r\n        echo \"\u8b66\u544a\uff1a\u6aa2\u6e2c\u5230\u53ef\u57f7\u884c\u6a94\u6848 - $file\"\r\n    fi\r\ndone<\/code><\/pre>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row el_class=&#8221;blog-detail-section&#8221;][vc_column][vc_column_text]<\/p>\n<h2><strong>\u5728\u4f3a\u670d\u5668\u7ba1\u7406\u8173\u672c\u4e2d\u6574\u5408 &#8216;file&#8217;<\/strong><\/h2>\n<p>\u70ba\u4e86\u9ad8\u6548\u7ba1\u7406\u9999\u6e2f\u4f3a\u670d\u5668\uff0c\u5c07 &#8216;file&#8217; \u6307\u4ee4\u6574\u5408\u5230\u60a8\u7684\u8173\u672c\u4e2d\u3002\u4ee5\u4e0b\u662f\u4e00\u500b\u5c0d\u76ee\u9304\u4e2d\u7684\u6a94\u6848\u9032\u884c\u5206\u985e\u7684\u7bc4\u4f8b\uff1a<\/p>\n<pre><code>#!\/bin\/bash\r\n\r\ndirectory=\"\/path\/to\/examine\"\r\n\r\ndeclare -A file_types\r\n\r\nwhile IFS= read -r -d '' file; do\r\n    type=$(file -b \"$file\")\r\n    file_types[\"$type\"]=$((file_types[\"$type\"] + 1))\r\ndone < <(find \"$directory\" -type f -print0)\r\n\r\necho \"\u6a94\u6848\u985e\u578b\u5206\u5e03\uff1a\"\r\nfor type in \"${!file_types[@]}\"; do\r\n    echo \"$type: ${file_types[$type]}\"\r\ndone<\/code><\/pre>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row el_class=\"blog-detail-section\"][vc_column][vc_column_text]<\/p>\n<h2><strong>\u5c40\u9650\u6027\u548c\u66ff\u4ee3\u65b9\u6848<\/strong><\/h2>\n<p>\u5118\u7ba1\u529f\u80fd\u5f37\u5927\uff0c'file' \u6307\u4ee4\u4e26\u975e\u842c\u80fd\u3002\u5b83\u53ef\u80fd\u5728\u8655\u7406\u67d0\u4e9b\u5c08\u6709\u683c\u5f0f\u6216\u52a0\u5bc6\u6a94\u6848\u6642\u9047\u5230\u56f0\u96e3\u3002\u5728\u9019\u7a2e\u60c5\u6cc1\u4e0b\uff0c\u53ef\u4ee5\u8003\u616e\u4f7f\u7528 'libmagic' \u7b49\u66ff\u4ee3\u65b9\u6848\u6216\u91dd\u5c0d\u7279\u5b9a\u6a94\u6848\u985e\u578b\u7684\u5c08\u9580\u5de5\u5177\u3002<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row el_class=\"blog-detail-section\"][vc_column][vc_column_text]<\/p>\n<h2><strong>\u7d50\u8ad6<\/strong><\/h2>\n<p>\u638c\u63e1 'file' \u6307\u4ee4\u5c0d\u7ba1\u7406\u9999\u6e2f\u4f3a\u670d\u5668\u4f86\u8aaa\u662f\u4e00\u500b\u904a\u6232\u898f\u5247\u6539\u8b8a\u8005\u3002\u7121\u8ad6\u60a8\u662f\u8655\u7406\u4f3a\u670d\u5668\u79df\u7528\u9084\u662f\u4f3a\u670d\u5668\u8a17\u7ba1\u670d\u52d9\uff0c\u9019\u500b\u5de5\u5177\u90fd\u80fd\u63d0\u5347\u60a8\u7406\u89e3\u548c\u63a7\u5236\u4f3a\u670d\u5668\u74b0\u5883\u7684\u80fd\u529b\u3002\u900f\u904e\u5c07 'file' \u6307\u4ee4\u6574\u5408\u5230\u60a8\u7684\u5de5\u4f5c\u6d41\u7a0b\u4e2d\uff0c\u60a8\u5c07\u80fd\u5920\u7c21\u5316\u64cd\u4f5c\uff0c\u52a0\u5f37\u5b89\u5168\u6027\uff0c\u4e26\u512a\u5316\u6574\u500b\u9999\u6e2f\u4f3a\u670d\u5668\u57fa\u790e\u8a2d\u65bd\u7684\u6548\u80fd\u3002<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row el_class=\"blog-detail-section\"][vc_column][vc_column_text]<\/p>\n<h2><strong>\u5e38\u898b\u554f\u984c<\/strong><\/h2>\n<h3>\u554f\uff1a'file' \u6307\u4ee4\u662f\u5426\u5728\u9999\u6e2f\u4f3a\u670d\u5668\u4f7f\u7528\u7684\u6240\u6709 Linux \u767c\u884c\u7248\u4e0a\u90fd\u53ef\u7528\uff1f<\/h3>\n<p>\u7b54\uff1a\u662f\u7684\uff0c'file' \u6307\u4ee4\u662f\u4e00\u500b\u6a19\u6e96\u5de5\u5177\uff0c\u5e7e\u4e4e\u5728\u6240\u6709 Linux \u767c\u884c\u7248\u4e0a\u90fd\u53ef\u7528\uff0c\u5305\u62ec\u9999\u6e2f\u4f3a\u670d\u5668\u74b0\u5883\u4e2d\u5e38\u7528\u7684\u90a3\u4e9b\u3002<\/p>\n<h3>\u554f\uff1a'file' \u6307\u4ee4\u80fd\u6aa2\u6e2c\u60e1\u610f\u8edf\u9ad4\u55ce\uff1f<\/h3>\n<p>\u7b54\uff1a\u96d6\u7136 'file' \u6307\u4ee4\u53ef\u4ee5\u8b58\u5225\u6a94\u6848\u985e\u578b\uff0c\u4f46\u5b83\u4e26\u4e0d\u662f\u70ba\u60e1\u610f\u8edf\u9ad4\u6aa2\u6e2c\u800c\u8a2d\u8a08\u7684\u3002\u5728\u9999\u6e2f\u4f3a\u670d\u5668\u4e0a\u9032\u884c\u5b89\u5168\u6383\u63cf\u6642\uff0c\u8acb\u4f7f\u7528\u5c08\u9580\u7684\u9632\u6bd2\u5de5\u5177\u3002<\/p>\n<h3>\u554f\uff1a\u5982\u4f55\u5728 Windows \u4f3a\u670d\u5668\u4e0a\u4f7f\u7528\u985e\u4f3c 'file' \u7684\u529f\u80fd\uff1f<\/h3>\n<p>\u7b54\uff1aWindows \u6c92\u6709\u76f4\u63a5\u7684\u7b49\u6548\u6307\u4ee4\uff0c\u4f46 PowerShell \u7684 'Get-ItemProperty' cmdlet \u53ef\u4ee5\u63d0\u4f9b\u985e\u4f3c\u7684\u8cc7\u8a0a\u3002\u70ba\u4e86\u7372\u5f97\u66f4\u63a5\u8fd1\u7684\u5339\u914d\uff0c\u53ef\u4ee5\u8003\u616e\u4f7f\u7528 Windows \u5b50\u7cfb\u7d71 for Linux (WSL) \u6216\u7b2c\u4e09\u65b9\u5de5\u5177\uff0c\u5982 GnuWin32 \u7684 'file' \u79fb\u690d\u7248\u3002<\/p>\n<p>\u900f\u904e\u6709\u6548\u5229\u7528 Linux 'file' \u6307\u4ee4\uff0c\u60a8\u5c07\u63d0\u5347\u7ba1\u7406\u548c\u4fdd\u8b77\u9999\u6e2f\u4f3a\u670d\u5668\u7684\u80fd\u529b\uff0c\u7121\u8ad6\u662f\u5728\u4f3a\u670d\u5668\u79df\u7528\u9084\u662f\u4f3a\u670d\u5668\u8a17\u7ba1\u74b0\u5883\u4e2d\u3002\u9019\u500b\u5f37\u5927\u7684\u5de5\u5177\uff0c\u7d50\u5408\u60a8\u4e0d\u65b7\u589e\u9577\u7684\u5c08\u696d\u77e5\u8b58\uff0c\u7121\u7591\u5c07\u628a\u60a8\u7684\u4f3a\u670d\u5668\u7ba1\u7406\u6280\u80fd\u63d0\u5347\u5230\u65b0\u7684\u9ad8\u5ea6\u3002<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row el_class=&#8221;blog-detail-section&#8221;][vc_ [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":3,"featured_media":17607,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[61],"tags":[4136,4137,1892,1549,259],"class_list":["post-17614","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hong-kong-dedicated-server-tc","tag-linux-file-command-tc","tag-file-type-identification-tc","tag-server-hosting-tc","tag-server-management-tc","tag-259"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u5982\u4f55\u5728 Linux \u4e2d\u4f7f\u7528 file \u6307\u4ee4\u78ba\u5b9a\u6a94\u6848\u985e\u578b\uff1f<\/title>\n<meta name=\"description\" content=\"\u4e86\u89e3\u5982\u4f55\u5229\u7528 Linux &#039;file&#039; \u6307\u4ee4\u5728\u9999\u6e2f\u4f3a\u670d\u5668\u4e0a\u8b58\u5225\u6a94\u6848\u985e\u578b\u3002\u900f\u904e\u5be6\u969b\u7bc4\u4f8b\u63d0\u5347\u60a8\u7684\u4f3a\u670d\u5668\u7ba1\u7406\u6280\u80fd\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/17614\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"company\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728 Linux \u4e2d\u4f7f\u7528 file \u6307\u4ee4\u78ba\u5b9a\u6a94\u6848\u985e\u578b\uff1f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/17614\" \/>\n<meta property=\"og:site_name\" content=\"\u65b0\u5929\u57df\u4e92\u806f\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-17T04:18:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-17T05:54:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.simcentric.com\/wp-content\/uploads\/2024\/10\/sim_1017b.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"620\" \/>\n\t<meta property=\"og:image:height\" content=\"343\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728 Linux \u4e2d\u4f7f\u7528 file \u6307\u4ee4\u78ba\u5b9a\u6a94\u6848\u985e\u578b\uff1f","description":"\u4e86\u89e3\u5982\u4f55\u5229\u7528 Linux 'file' \u6307\u4ee4\u5728\u9999\u6e2f\u4f3a\u670d\u5668\u4e0a\u8b58\u5225\u6a94\u6848\u985e\u578b\u3002\u900f\u904e\u5be6\u969b\u7bc4\u4f8b\u63d0\u5347\u60a8\u7684\u4f3a\u670d\u5668\u7ba1\u7406\u6280\u80fd\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/17614","og_locale":"zh_TW","og_type":"company","og_title":"\u5982\u4f55\u5728 Linux \u4e2d\u4f7f\u7528 file \u6307\u4ee4\u78ba\u5b9a\u6a94\u6848\u985e\u578b\uff1f","og_url":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/17614","og_site_name":"\u65b0\u5929\u57df\u4e92\u806f","article_published_time":"2024-10-17T04:18:49+00:00","article_modified_time":"2024-10-17T05:54:47+00:00","og_image":[{"width":620,"height":343,"url":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2024\/10\/sim_1017b.jpg","type":"image\/jpeg"}],"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/#article","isPartOf":{"@id":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/"},"author":{"name":"Felix Cheung","@id":"https:\/\/simcentric.com\/tc\/#\/schema\/person\/2865b3454f789caf7083a203799d4a6d"},"headline":"\u5982\u4f55\u5728 Linux \u4e2d\u4f7f\u7528 file \u6307\u4ee4\u78ba\u5b9a\u6a94\u6848\u985e\u578b\uff1f","datePublished":"2024-10-17T04:18:49+00:00","dateModified":"2024-10-17T05:54:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/"},"wordCount":193,"publisher":{"@id":"https:\/\/simcentric.com\/tc\/#organization"},"image":{"@id":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/#primaryimage"},"thumbnailUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2024\/10\/sim_1017b.jpg","keywords":["Linux file \u6307\u4ee4","\u6a94\u6848\u985e\u578b\u8b58\u5225","\u4f3a\u670d\u5668\u79df\u7528","\u4f3a\u670d\u5668\u7ba1\u7406","\u9999\u6e2f\u4f3a\u670d\u5668"],"articleSection":["\u9999\u6e2f\u4f3a\u670d\u5668"],"inLanguage":"zh-HK"},{"@type":"WebPage","@id":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/","url":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/","name":"\u5982\u4f55\u5728 Linux \u4e2d\u4f7f\u7528 file \u6307\u4ee4\u78ba\u5b9a\u6a94\u6848\u985e\u578b\uff1f","isPartOf":{"@id":"https:\/\/simcentric.com\/tc\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/#primaryimage"},"image":{"@id":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/#primaryimage"},"thumbnailUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2024\/10\/sim_1017b.jpg","datePublished":"2024-10-17T04:18:49+00:00","dateModified":"2024-10-17T05:54:47+00:00","description":"\u4e86\u89e3\u5982\u4f55\u5229\u7528 Linux 'file' \u6307\u4ee4\u5728\u9999\u6e2f\u4f3a\u670d\u5668\u4e0a\u8b58\u5225\u6a94\u6848\u985e\u578b\u3002\u900f\u904e\u5be6\u969b\u7bc4\u4f8b\u63d0\u5347\u60a8\u7684\u4f3a\u670d\u5668\u7ba1\u7406\u6280\u80fd\u3002","breadcrumb":{"@id":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/#breadcrumb"},"inLanguage":"zh-HK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/"]}]},{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/#primaryimage","url":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2024\/10\/sim_1017b.jpg","contentUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2024\/10\/sim_1017b.jpg","width":620,"height":343},{"@type":"BreadcrumbList","@id":"https:\/\/www.simcentric.com\/tc\/hong-kong-dedicated-server-tc\/how-to-determine-file-types-in-linux-with-the-file-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.simcentric.com\/tc\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728 Linux \u4e2d\u4f7f\u7528 file \u6307\u4ee4\u78ba\u5b9a\u6a94\u6848\u985e\u578b\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/simcentric.com\/tc\/#website","url":"https:\/\/simcentric.com\/tc\/","name":"Simcentric Solutions","description":"","publisher":{"@id":"https:\/\/simcentric.com\/tc\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/simcentric.com\/tc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-HK"},{"@type":"Organization","@id":"https:\/\/simcentric.com\/tc\/#organization","name":"Simcentric Solutions","url":"https:\/\/simcentric.com\/tc\/","logo":{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/simcentric.com\/tc\/#\/schema\/logo\/image\/","url":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2023\/06\/sim-logo-2023.png","contentUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2023\/06\/sim-logo-2023.png","width":800,"height":222,"caption":"Simcentric Solutions"},"image":{"@id":"https:\/\/simcentric.com\/tc\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/simcentric.com\/tc\/#\/schema\/person\/2865b3454f789caf7083a203799d4a6d","name":"Felix Cheung","image":{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/secure.gravatar.com\/avatar\/836e6f2be80c47f0897198ffea03fae331dad9aaafbc988c752691eb595e0e2f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/836e6f2be80c47f0897198ffea03fae331dad9aaafbc988c752691eb595e0e2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/836e6f2be80c47f0897198ffea03fae331dad9aaafbc988c752691eb595e0e2f?s=96&d=mm&r=g","caption":"Felix Cheung"}}]}},"_links":{"self":[{"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/17614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/comments?post=17614"}],"version-history":[{"count":1,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/17614\/revisions"}],"predecessor-version":[{"id":17615,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/posts\/17614\/revisions\/17615"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/media\/17607"}],"wp:attachment":[{"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/media?parent=17614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/categories?post=17614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.simcentric.com\/tc\/wp-json\/wp\/v2\/tags?post=17614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}