{"id":4026,"date":"2021-06-10T22:28:42","date_gmt":"2021-06-10T14:28:42","guid":{"rendered":"http:\/\/blog.ywdevops.cn\/?p=4026"},"modified":"2023-07-29T12:45:55","modified_gmt":"2023-07-29T04:45:55","slug":"inode","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2021\/06\/10\/inode\/","title":{"rendered":"Linux inode \u8be6\u89e3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u64cd\u4f5c\u7cfb\u7edf\u7684\u6587\u4ef6\u6570\u636e\u9664\u4e86\u5b9e\u9645\u5185\u5bb9\u4e4b\u5916\uff0c\u901a\u5e38\u542b\u6709\u975e\u5e38\u591a\u7684\u5c5e\u6027\uff0c\u4f8b\u5982<code>Linux<\/code>\u64cd\u4f5c\u7cfb\u7edf\u7684\u6587\u4ef6\u6743\u9650\u4e0e\u6587\u4ef6\u5c5e\u6027\u3002\u6587\u4ef6\u7cfb\u7edf\u901a\u5e38\u4f1a\u5c06\u8fd9\u4e24\u90e8\u5206\u5185\u5bb9\u5206\u522b\u5b58\u653e\u5728<code>inode<\/code>\u548c<code>block<\/code>\u4e2d\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>inode \u548c block \u6982\u8ff0\uff1a<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6587\u4ef6\u662f\u5b58\u50a8\u5728\u786c\u76d8\u4e0a\u7684\uff0c\u786c\u76d8\u7684\u6700\u5c0f\u5b58\u50a8\u5355\u4f4d\u53eb\u505a\u6247\u533a<code>sector<\/code>\uff0c\u6bcf\u4e2a\u6247\u533a\u5b58\u50a8<code>512\u5b57\u8282<\/code>\u3002\u64cd\u4f5c\u7cfb\u7edf\u8bfb\u53d6\u786c\u76d8\u7684\u65f6\u5019\uff0c\u4e0d\u4f1a\u4e00\u4e2a\u4e2a\u6247\u533a\u5730\u8bfb\u53d6\uff0c\u8fd9\u6837\u6548\u7387\u592a\u4f4e\uff0c\u800c\u662f\u4e00\u6b21\u6027\u8fde\u7eed\u8bfb\u53d6\u591a\u4e2a\u6247\u533a\uff0c\u5373\u4e00\u6b21\u6027\u8bfb\u53d6\u4e00\u4e2a\u5757<code>block<\/code>\u3002\u8fd9\u79cd\u7531\u591a\u4e2a\u6247\u533a\u7ec4\u6210\u7684\u5757\uff0c\u662f\u6587\u4ef6\u5b58\u53d6\u7684\u6700\u5c0f\u5355\u4f4d\u3002\u5757\u7684\u5927\u5c0f\uff0c\u6700\u5e38\u89c1\u7684\u662f<code>4KB<\/code>\uff0c\u5373\u8fde\u7eed\u516b\u4e2a<code>sector<\/code>\u7ec4\u6210\u4e00\u4e2a<code>block<\/code>\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6587\u4ef6\u6570\u636e\u5b58\u50a8\u5728\u5757\u4e2d\uff0c\u90a3\u4e48\u8fd8\u5fc5\u987b\u627e\u5230\u4e00\u4e2a\u5730\u65b9\u5b58\u50a8\u6587\u4ef6\u7684\u5143\u4fe1\u606f\uff0c\u6bd4\u5982\u6587\u4ef6\u7684\u521b\u5efa\u8005\u3001\u6587\u4ef6\u7684\u521b\u5efa\u65e5\u671f\u3001\u6587\u4ef6\u7684\u5927\u5c0f\u7b49\u7b49\u3002\u8fd9\u79cd\u5b58\u50a8\u6587\u4ef6\u5143\u4fe1\u606f\u7684\u533a\u57df\u5c31\u53eb\u505a<code>inode<\/code>\uff0c\u4e2d\u6587\u8bd1\u540d\u4e3a<code>\u7d22\u5f15\u8282\u70b9<\/code>\uff0c\u4e5f\u53eb<code>i\u8282\u70b9<\/code>\u3002\u56e0\u6b64\uff0c\u4e00\u4e2a\u6587\u4ef6\u5fc5\u987b\u5360\u7528\u4e00\u4e2a<code>inode<\/code>\uff0c\u4f46\u81f3\u5c11\u5360\u7528\u4e00\u4e2a<code>block<\/code>\u3002 <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li> \u5143\u4fe1\u606f \u2192 inode <\/li>\n\n\n\n<li> \u6570\u636e \u2192 block <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>inode \u5185\u5bb9<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>inode<\/code>\u5305\u542b\u5f88\u591a\u7684\u6587\u4ef6\u5143\u4fe1\u606f\uff0c\u4f46\u4e0d\u5305\u542b\u6587\u4ef6\u540d\uff0c\u4f8b\u5982\uff1a\u5b57\u8282\u6570\u3001\u5c5e\u4e3b<code>UserID<\/code>\u3001\u5c5e\u7ec4<code>GroupID<\/code>\u3001\u8bfb\u5199\u6267\u884c\u6743\u9650\u3001\u65f6\u95f4\u6233\u7b49\u3002\u800c\u6587\u4ef6\u540d\u5b58\u653e\u5728\u76ee\u5f55\u5f53\u4e2d\uff0c\u4f46<code>Linux<\/code>\u7cfb\u7edf\u5185\u90e8\u4e0d\u4f7f\u7528\u6587\u4ef6\u540d\uff0c\u800c\u662f\u4f7f\u7528<code>inode\u53f7\u7801<\/code>\u8bc6\u522b\u6587\u4ef6\u3002\u5bf9\u4e8e\u7cfb\u7edf\u6765\u8bf4\u6587\u4ef6\u540d\u53ea\u662f<code>inode\u53f7\u7801<\/code>\u4fbf\u4e8e\u8bc6\u522b\u7684\u522b\u79f0\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8868\u9762\u4e0a\uff0c\u7528\u6237\u901a\u8fc7\u6587\u4ef6\u540d\u6253\u5f00\u6587\u4ef6\uff0c\u5b9e\u9645\u4e0a\uff0c\u7cfb\u7edf\u5185\u90e8\u5c06\u8fd9\u4e2a\u8fc7\u7a0b\u5206\u4e3a\u4e09\u6b65\uff1a <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li> \u7cfb\u7edf\u627e\u5230\u8fd9\u4e2a\u6587\u4ef6\u540d\u5bf9\u5e94\u7684<code>inode<\/code>\u53f7\u7801 <\/li>\n\n\n\n<li> \u901a\u8fc7<code>inode<\/code>\u53f7\u7801\uff0c\u83b7\u53d6<code>inode<\/code>\u4fe1\u606f <\/li>\n\n\n\n<li> \u6839\u636e<code>inode<\/code>\u4fe1\u606f\uff0c\u627e\u5230\u6587\u4ef6\u6570\u636e\u6240\u5728\u7684<code>block<\/code>\uff0c\u5e76\u8bfb\u51fa\u6570\u636e <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u5b9e\u7cfb\u7edf\u8fd8\u8981\u6839\u636e<code>inode<\/code>\u4fe1\u606f\uff0c\u770b\u7528\u6237\u662f\u5426\u5177\u6709\u8bbf\u95ee\u7684\u6743\u9650\uff0c\u6709\u5c31\u6307\u5411\u5bf9\u5e94\u7684\u6570\u636e<code>block<\/code>\uff0c\u6ca1\u6709\u5c31\u8fd4\u56de\u6743\u9650\u62d2\u7edd <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u67e5\u770binode\u4fe1\u606f\uff1a\u53ef\u901a\u8fc7stat\u547d\u4ee4\u6216\u8005ll -i \u547d\u4ee4\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"559\" height=\"184\" src=\"http:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/06\/50.png\" alt=\"\" class=\"wp-image-4027\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/06\/50.png 559w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/06\/50-300x99.png 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"551\" height=\"107\" src=\"http:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/06\/51.png\" alt=\"\" class=\"wp-image-4028\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/06\/51.png 551w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/06\/51-300x58.png 300w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><code>inode<\/code>\u4e5f\u4f1a\u6d88\u8017\u786c\u76d8\u7a7a\u95f4\uff0c\u6240\u4ee5\u683c\u5f0f\u5316\u7684\u65f6\u5019\uff0c\u64cd\u4f5c\u7cfb\u7edf\u81ea\u52a8\u5c06\u786c\u76d8\u5206\u6210\u4e24\u4e2a\u533a\u57df\u3002\u4e00\u4e2a\u662f\u6570\u636e\u533a\uff0c\u5b58\u653e\u6587\u4ef6\u6570\u636e\uff1b\u53e6\u4e00\u4e2a\u662f<code>inode<\/code>\u533a\uff0c\u5b58\u653e<code>inode<\/code>\u6240\u5305\u542b\u7684\u4fe1\u606f\u3002\u6bcf\u4e2a<code>inode<\/code>\u7684\u5927\u5c0f\uff0c\u4e00\u822c\u662f<code>128<\/code>\u5b57\u8282\u6216<code>256<\/code>\u5b57\u8282\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\u4e0d\u9700\u8981\u5173\u6ce8\u5355\u4e2a<code>inode<\/code>\u7684\u5927\u5c0f\uff0c\u800c\u662f\u9700\u8981\u91cd\u70b9\u5173\u6ce8<code>inode<\/code>\u603b\u6570\u3002<code>inode<\/code>\u603b\u6570\u5728\u683c\u5f0f\u5316\u7684\u65f6\u5019\u5c31\u786e\u5b9a\u4e86\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">df  -i  \u67e5\u770b\u786c\u76d8\u5206\u533a\u7684<code>inode\u603b\u6570<\/code>\u548c<code>\u5df2\u4f7f\u7528<\/code>\u60c5\u51b5<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"568\" height=\"176\" src=\"http:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/06\/52.png\" alt=\"\" class=\"wp-image-4029\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/06\/52.png 568w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2021\/06\/52-300x93.png 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u7531\u4e8e<code>inode<\/code>\u53f7\u7801\u4e0e\u6587\u4ef6\u540d\u5206\u79bb\uff0c\u5bfc\u81f4\u4e00\u4e9b<code>Unix\/Linux<\/code>\u7cfb\u7edf\u5177\u5907\u4ee5\u4e0b\u51e0\u79cd\u7279\u6709\u7684\u73b0\u8c61 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1.\u6587\u4ef6\u540d\u5305\u542b\u7279\u6b8a\u5b57\u7b26\uff0c\u53ef\u80fd\u65e0\u6cd5\u6b63\u5e38\u5220\u9664\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"581\" height=\"209\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/1.jpg\" alt=\"\" class=\"wp-image-14249\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/1.jpg 581w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/1-300x108.jpg 300w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u65f6\u53ef\u901a\u8fc7\u76f4\u63a5\u5220\u9664<code>inode<\/code>\uff0c  \u6765\u5220\u9664\u6587\u4ef6\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find .\/* -inum \u8282\u70b9\u53f7 -delete <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5148\u67e5\u770binode\u4fe1\u606f\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"214\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/2.jpg\" alt=\"\" class=\"wp-image-14252\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/2.jpg 580w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/2-300x111.jpg 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"227\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/3.jpg\" alt=\"\" class=\"wp-image-14253\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/3.jpg 580w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/3-300x117.jpg 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2.\u79fb\u52a8\u6587\u4ef6\u6216\u91cd\u547d\u540d\u6587\u4ef6\uff0c\u53ea\u662f\u6539\u53d8\u6587\u4ef6\u540d\uff0c\u4e0d\u5f71\u54cd<code>inode<\/code>\u53f7\u7801\uff1b <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"583\" height=\"227\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/4.jpg\" alt=\"\" class=\"wp-image-14256\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/4.jpg 583w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/07\/4-300x117.jpg 300w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"> 3.\u6253\u5f00\u4e00\u4e2a\u6587\u4ef6\u4ee5\u540e\uff0c\u7cfb\u7edf\u5c31\u4ee5<code>inode<\/code>\u53f7\u7801\u6765\u8bc6\u522b\u8fd9\u4e2a\u6587\u4ef6\uff0c\u4e0d\u518d\u8003\u8651\u6587\u4ef6\u540d\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u79cd\u60c5\u51b5\u4f7f\u5f97\u8f6f\u4ef6\u66f4\u65b0\u53d8\u5f97\u7b80\u5355\uff0c\u53ef\u4ee5\u5728\u4e0d\u5173\u95ed\u8f6f\u4ef6\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u66f4\u65b0\uff0c\u4e0d\u9700\u8981\u91cd\u542f\u3002\u56e0\u4e3a\u7cfb\u7edf\u901a\u8fc7<code>inode<\/code>\u53f7\u7801\uff0c\u8bc6\u522b\u8fd0\u884c\u4e2d\u7684\u6587\u4ef6\uff0c\u4e0d\u901a\u8fc7\u6587\u4ef6\u540d\u3002\u66f4\u65b0\u7684\u65f6\u5019\uff0c\u65b0\u7248\u6587\u4ef6\u4ee5\u540c\u6837\u7684\u6587\u4ef6\u540d\uff0c\u751f\u6210\u4e00\u4e2a\u65b0\u7684<code>inode<\/code>\uff0c\u4e0d\u4f1a\u5f71\u54cd\u5230\u8fd0\u884c\u4e2d\u7684\u6587\u4ef6\u3002\u7b49\u5230\u4e0b\u4e00\u6b21\u8fd0\u884c\u8fd9\u4e2a\u8f6f\u4ef6\u7684\u65f6\u5019\uff0c\u6587\u4ef6\u540d\u5c31\u81ea\u52a8\u6307\u5411\u65b0\u7248\u6587\u4ef6\uff0c\u65e7\u7248\u6587\u4ef6\u7684<code>inode<\/code>\u5219\u88ab\u56de\u6536\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>inode \u8017\u5c3d\u6545\u969c:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7531\u4e8e\u786c\u76d8\u5206\u533a\u7684<code>inode<\/code>\u603b\u6570\u5728\u683c\u5f0f\u5316\u540e\u5c31\u5df2\u7ecf\u56fa\u5b9a\uff0c\u800c\u6bcf\u4e2a\u6587\u4ef6\u5fc5\u987b\u6709\u4e00\u4e2a<code>inode<\/code>\uff0c\u56e0\u6b64\u5c31\u6709\u53ef\u80fd\u53d1\u751f<code>inode<\/code>\u8282\u70b9\u7528\u5149\uff0c\u4f46\u786c\u76d8\u7a7a\u95f4\u8fd8\u5269\u4e0d\u5c11\uff0c\u5374\u65e0\u6cd5\u521b\u5efa\u65b0\u6587\u4ef6\u3002\u540c\u65f6\u8fd9\u4e5f\u662f\u4e00\u79cd\u653b\u51fb\u7684\u65b9\u5f0f\uff0c\u6240\u4ee5\u4e00\u4e9b\u516c\u7528\u7684\u6587\u4ef6\u7cfb\u7edf\u5c31\u8981\u505a\u78c1\u76d8\u9650\u989d\uff0c\u4ee5\u9632\u6b62\u5f71\u54cd\u5230\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002  \u81f3\u4e8e\u4fee\u590d\uff0c\u5f88\u7b80\u5355\uff0c\u53ea\u8981\u627e\u51fa\u54ea\u4e9b\u5927\u91cf\u5360\u7528<code>i\u8282\u70b9<\/code>\u7684\u6587\u4ef6\u5220\u9664\u5c31\u53ef\u4ee5\u4e86\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u786c\u94fe\u63a5:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u6587\u4ef6\u7cfb\u7edf\u7684<code>inode<\/code>\u94fe\u63a5\u6765\u4ea7\u751f\u7684\u65b0\u7684\u6587\u4ef6\u540d\uff0c\u800c\u4e0d\u662f\u4ea7\u751f\u65b0\u7684\u6587\u4ef6\uff0c\u79f0\u4e3a\u786c\u94fe\u63a5\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6bcf\u4e2a<code>inode<\/code>\u53f7\u7801\u5bf9\u5e94\u4e00\u4e2a\u6587\u4ef6\u540d\uff0c\u4f46\u662f<code>Linux<\/code>\u5141\u8bb8\u591a\u4e2a\u6587\u4ef6\u540d\u6307\u5411\u540c\u4e00\u4e2a<code>inode<\/code>\u53f7\u7801\u3002\u610f\u5473\u7740\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u6587\u4ef6\u540d\u8bbf\u95ee\u76f8\u540c\u7684\u5185\u5bb9\u3002  <\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\"> ln \u6e90\u6587\u4ef6 \u76ee\u6807 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd0\u884c\u4e0a\u8ff0\u547d\u4ee4\u4ee5\u540e\uff0c\u6e90\u6587\u4ef6\u4e0e\u76ee\u6807\u6587\u4ef6\u7684<code>inode<\/code>\u53f7\u7801\u76f8\u540c\uff0c\u90fd\u6307\u5411\u540c\u4e00\u4e2a<code>inode<\/code>\u3002<code>inode<\/code>\u4fe1\u606f\u4e2d\u7684\u94fe\u63a5\u6570\u8fd9\u65f6\u5c31\u4f1a\u589e\u52a0<code>1<\/code>\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u4e00\u4e2a\u6587\u4ef6\u62e5\u6709\u591a\u4e2a\u786c\u94fe\u63a5\u65f6\uff0c\u5bf9\u6587\u4ef6\u5185\u5bb9\u4fee\u6539\uff0c\u4f1a\u5f71\u54cd\u5230\u6240\u6709\u6587\u4ef6\u540d\uff1b\u4f46\u662f\u5220\u9664\u4e00\u4e2a\u6587\u4ef6\u540d\uff0c\u4e0d\u5f71\u54cd\u53e6\u4e00\u4e2a\u6587\u4ef6\u540d\u7684\u8bbf\u95ee\u3002\u5220\u9664\u4e00\u4e2a\u6587\u4ef6\u540d\uff0c\u53ea\u4f1a\u4f7f\u5f97<code>inode<\/code>\u4e2d\u7684\u94fe\u63a5\u6570\u51cf<code>1<\/code> <\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\"> \u9700\u8981\u6ce8\u610f\u7684\u662f\u4e0d\u80fd\u5bf9\u76ee\u5f55\u505a\u786c\u94fe\u63a5\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7<code>mkdir<\/code>\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u76ee\u5f55\uff0c\u5176\u786c\u94fe\u63a5\u6570\u5e94\u8be5\u6709<code>2<\/code>\u4e2a\uff0c\u56e0\u4e3a\u5e38\u89c1\u7684\u76ee\u5f55\u672c\u8eab\u4e3a<code>1<\/code>\u4e2a\u786c\u94fe\u63a5\uff0c\u800c\u76ee\u5f55\u4e0b\u9762\u7684\u9690\u85cf\u76ee\u5f55<code>.\uff08\u70b9\u53f7\uff09<\/code>\u662f\u8be5\u76ee\u5f55\u7684\u53c8\u4e00\u4e2a\u786c\u94fe\u63a5\uff0c\u4e5f\u7b97\u662f<code>1<\/code>\u4e2a\u8fde\u63a5\u6570\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u8f6f\u94fe\u63a5<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7c7b\u4f3c\u4e8eWindows\u7684\u5feb\u6377\u65b9\u5f0f\u529f\u80fd\u7684\u6587\u4ef6\uff0c\u53ef\u4ee5\u5feb\u901f\u8fde\u63a5\u5230\u76ee\u6807\u6587\u4ef6\u6216\u76ee\u5f55\uff0c\u79f0\u4e3a\u8f6f\u94fe\u63a5\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\"> ln -s \u6e90\u6587\u4ef6\u6216\u76ee\u5f55 \u76ee\u6807\u6587\u4ef6\u6216\u76ee\u5f55  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8f6f\u94fe\u63a5\u5c31\u662f\u518d\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684\u6587\u4ef6\uff0c\u800c\u8fd9\u4e2a\u6587\u4ef6\u4f1a\u8ba9\u6570\u636e\u7684\u8bfb\u53d6\u6307\u5411\u5b83\u8fde\u63a5\u7684\u90a3\u4e2a\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u3002\u4f8b\u5982\uff0c\u6587\u4ef6<code>A<\/code>\u548c\u6587\u4ef6<code>B<\/code>\u7684<code>inode<\/code>\u53f7\u7801\u867d\u7136\u4e0d\u4e00\u6837\uff0c\u4f46\u662f\u6587\u4ef6<code>A<\/code>\u7684\u5185\u5bb9\u662f\u6587\u4ef6<code>B<\/code>\u7684\u8def\u5f84\u3002\u8bfb\u53d6\u6587\u4ef6<code>A<\/code>\u65f6\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5c06\u8bbf\u95ee\u8005\u5bfc\u5411\u6587\u4ef6<code>B<\/code>\u3002\u8fd9\u65f6\uff0c\u6587\u4ef6<code>A<\/code>\u5c31\u79f0\u4e3a\u6587\u4ef6<code>B<\/code>\u7684\u8f6f\u94fe\u63a5<code>soft link<\/code>\u6216\u8005\u7b26\u53f7\u94fe\u63a5<code>symbolic link<\/code> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u610f\u5473\u7740\uff0c\u6587\u4ef6<code>A<\/code>\u4f9d\u8d56\u4e8e\u6587\u4ef6<code>B<\/code>\u800c\u5b58\u5728\uff0c\u5982\u679c\u5220\u9664\u4e86\u6587\u4ef6<code>B<\/code>\uff0c\u6253\u5f00\u6587\u4ef6<code>A<\/code>\u5c31\u4f1a\u62a5\u9519\u3002\u8fd9\u662f\u8f6f\u94fe\u63a5\u4e0e\u786c\u94fe\u63a5\u6700\u5927\u7684\u4e0d\u540c\uff1a\u6587\u4ef6<code>A<\/code>\u6307\u5411\u6587\u4ef6<code>B<\/code>\u7684\u6587\u4ef6\u540d\uff0c\u800c\u4e0d\u662f\u6587\u4ef6<code>B<\/code>\u7684<code>inode<\/code>\u53f7\u7801\uff0c\u6587\u4ef6<code>B<\/code>\u7684<code>inode<\/code>\u94fe\u63a5\u6570\u4e0d\u4f1a\u56e0\u6b64\u53d1\u751f\u53d8\u5316\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u64cd\u4f5c\u7cfb\u7edf\u7684\u6587\u4ef6\u6570\u636e\u9664\u4e86\u5b9e\u9645\u5185\u5bb9\u4e4b\u5916\uff0c\u901a\u5e38\u542b\u6709\u975e\u5e38\u591a\u7684\u5c5e\u6027\uff0c\u4f8b\u5982Linux\u64cd\u4f5c\u7cfb\u7edf\u7684\u6587\u4ef6\u6743\u9650\u4e0e\u6587\u4ef6\u5c5e\u6027\u3002\u6587\u4ef6\u7cfb\u7edf&#8230;<\/p>\n","protected":false},"author":3,"featured_media":4030,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,22],"tags":[],"class_list":["post-4026","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-server"],"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/4026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=4026"}],"version-history":[{"count":7,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/4026\/revisions"}],"predecessor-version":[{"id":14257,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/4026\/revisions\/14257"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/4030"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}