{"id":1127,"date":"2016-08-24T00:56:19","date_gmt":"2016-08-23T16:56:19","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=1127"},"modified":"2025-01-06T13:55:01","modified_gmt":"2025-01-06T05:55:01","slug":"linux%e4%b8%8b%e5%88%9b%e5%bb%ba%e5%92%8c%e5%88%a0%e9%99%a4%e8%bd%af%e3%80%81%e7%a1%ac%e9%93%be%e6%8e%a5","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/jishu\/linux\/linux%e4%b8%8b%e5%88%9b%e5%bb%ba%e5%92%8c%e5%88%a0%e9%99%a4%e8%bd%af%e3%80%81%e7%a1%ac%e9%93%be%e6%8e%a5\/","title":{"rendered":"linux\u4e0b\u521b\u5efa\u548c\u5220\u9664\u8f6f\u3001\u786c\u94fe\u63a5"},"content":{"rendered":"<p>\u5728Linux\u7cfb\u7edf\u4e2d,\u5185\u6838\u4e3a\u6bcf\u4e00\u4e2a\u65b0\u521b\u5efa\u7684\u6587\u4ef6\u5206\u914d\u4e00\u4e2aInode(\u7d22\u5f15\u7ed3\u70b9),\u6bcf\u4e2a\u6587\u4ef6\u90fd\u6709\u4e00\u4e2a\u60df\u4e00\u7684inode\u53f7\u3002\u6587\u4ef6\u5c5e\u6027\u4fdd\u5b58\u5728\u7d22\u5f15\u7ed3\u70b9\u91cc\uff0c\u5728\u8bbf\u95ee\u6587\u4ef6\u65f6\uff0c\u7d22\u5f15\u7ed3\u70b9\u88ab\u590d\u5236\u5230\u5185\u5b58\u5728\uff0c\u4ece\u800c\u5b9e\u73b0\u6587\u4ef6\u7684\u5feb\u901f\u8bbf\u95ee\u3002<\/p>\n<div><\/div>\n<div>\u3000\u3000\u94fe\u63a5\u662f\u4e00\u79cd\u5728\u5171\u4eab\u6587\u4ef6\u548c\u8bbf\u95ee\u5b83\u7684\u7528\u6237\u7684\u82e5\u5e72\u76ee\u5f55\u9879\u4e4b\u95f4\u5efa\u7acb\u8054\u7cfb\u7684\u4e00\u79cd\u65b9\u6cd5\u3002Linux\u4e2d\u5305\u62ec\u4e24\u79cd\u94fe\u63a5\uff1a\u786c\u94fe\u63a5(Hard Link)\u548c\u8f6f\u94fe\u63a5(Soft Link),\u8f6f\u94fe\u63a5\u53c8\u79f0\u4e3a\u7b26\u53f7\u94fe\u63a5\uff08Symbolic link\uff09\u3002\u7b26\u53f7\u8fde\u63a5\u76f8\u5f53\u4e8eWindows\u4e0b\u7684\u5feb\u6377\u65b9\u5f0f\u3002<\/div>\n<div><\/div>\n<div>\u4e00\u3001\u786c\u94fe\u63a5<\/div>\n<div><\/div>\n<div>\u786c\u94fe\u63a5\u8bf4\u767d\u4e86\u662f\u4e00\u4e2a\u6307\u9488\uff0c\u6307\u5411\u6587\u4ef6\u7d22\u5f15\u8282\u70b9\uff0c\u7cfb\u7edf\u5e76\u4e0d\u4e3a\u5b83\u91cd\u65b0\u5206\u914dinode\u3002\u53ef\u4ee5\u7528:ln\u547d\u4ee4\u6765\u5efa\u7acb\u786c\u94fe\u63a5\u3002<\/div>\n<div>\u8bed\u6cd5:<\/div>\n<div>ln [options] existingfile newfile\uff08sexistingfile \u5f85\u5efa\u7acb\u94fe\u63a5\u6587\u4ef6\u7684\u6587\u4ef6\uff0cnewfile\u662f\u65b0\u521b\u5efa\u7684\u94fe\u63a5\u6587\u4ef6\uff09<\/div>\n<div>ln [options] existingfile-list directory<\/div>\n<div><\/div>\n<div>-f \u5efa\u7acb\u65f6\uff0c\u5c06\u540c\u6863\u6848\u540d\u5220\u9664.<\/div>\n<div>-i \u5220\u9664\u524d\u8fdb\u884c\u8be2\u95ee.<\/div>\n<div><\/div>\n<div>ln -s abc cde \u5efa\u7acbabc \u7684\u8f6f\u8fde\u63a5<\/div>\n<div>ln abc cde \u5efa\u7acbabc\u7684\u786c\u8fde\u63a5\uff0c<\/div>\n<div><\/div>\n<div>\u7528\u6cd5:<\/div>\n<div>\u7b2c\u4e00\u79cd:\u4e3a\u201dexistingfile\u201d\u521b\u5efa\u786c\u94fe\u63a5,\u6587\u4ef6\u540d\u4e3a\u201dnewfile\u201d\u3002<\/div>\n<div>\u7b2c\u4e8c\u79cd:\u5728\u201ddirectory\u201d\u76ee\u5f55\u4e2d,\u4e3a\u201dexistingfile-list\u201d\u4e2d\u5305\u542b\u7684\u6240\u6709\u6587\u4ef6\u521b\u5efa\u4e00\u4e2a\u540c\u540d\u7684\u786c\u94fe\u63a5\u3002<\/div>\n<div>\u5e38\u7528\u53ef\u9009[options] \u2013f \u65e0\u8bba\u201dnewfile\u201d\u5b58\u5728\u4e0e\u5426,\u90fd\u521b\u5efa\u94fe\u63a5\u3002-n \u5982\u679c\u201dnewfile\u201d\u5df2\u5b58\u5728,\u5c31\u4e0d\u521b\u5efa\u94fe\u63a5\u3002<\/div>\n<div><\/div>\n<div>\u4e0b\u9762\u4e3e\u4e00\u4e9b\u4f8b\u5b50:<\/div>\n<div><\/div>\n<div>[root@rekfan.com test]# ls -il<\/div>\n<div>\u603b\u8ba1 0<\/div>\n<div>1491138 -rw-r\u2013r\u2013 1 root root 48 07-14 14:17 file1<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2<\/div>\n<div>[root@rekfan.com test]# ln file2 file2hand<\/div>\n<div>[root@rekfan.com test]# ls -il<\/div>\n<div>\u603b\u8ba1 0<\/div>\n<div>1491138 -rw-r\u2013r\u2013 1 root root 48 07-14 14:17 file1<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2hand<\/div>\n<div>[root@rekfan.com test]#<\/div>\n<div><\/div>\n<div>\u6ce8\u610f\u5728\u521b\u5efa\u94fe\u63a5\u524d,file1 \u663e\u793a\u7684\u94fe\u63a5\u6570\u76ee\u4e3a1,\u521b\u5efa\u94fe\u63a5\u540efile1\u548cfile1hard\u7684\u94fe\u63a5\u6570\u76ee\u90fd\u53d8\u4e3a2;file1\u548cfile1hard\u5728inode\u53f7\u662f\u4e00\u6837\u7684file1\u548cfile1hard\u663e\u793a\u7684\u6587\u4ef6\u5927\u5c0f\u4e5f\u662f\u4e00\u6837\u3002\u53ef\u89c1\u8fdb\u884c\u4e86ln\u547d\u4ee4\u7684\u64cd\u4f5c\u7ed3\u679c\uff1afile1\u548cfile1hard\u662f\u540c\u4e00\u4e2a\u6587\u4ef6\u7684\u4e24\u4e2a\u540d\u5b57\uff0c\u5b83\u4eec\u5177\u6709\u540c\u6837\u7684\u7d22\u5f15\u8282\u70b9\u53f7\u548c\u6587\u4ef6\u5c5e\u6027\uff0c\u5efa\u7acb\u6587\u4ef6file1\u7684\u786c\u94fe\u63a5\uff0c\u5c31\u662f\u4e3afile1\u7684\u6587\u4ef6\u7d22\u5f15\u8282\u70b9\u5728\u5f53\u524d\u76ee\u5f55\u4e0a\u5efa\u7acb\u4e00\u4e2a\u65b0\u6307\u9488\u3002\u4f60\u53ef\u4ee5\u5220\u9664\u5176\u4e2d\u4efb\u4f55\u4e00\u4e2a,\u5982rm file2 ,\u6bcf\u6b21\u53ea\u4f1a\u5220\u9664\u4e00\u4e2a\u6307\u9488,\u94fe\u63a5\u6570\u540c\u65f6\u51cf\u4e00,\u5f53\u94fe\u63a5\u6570\u51cf\u4e3a0\u65f6\uff0c\u5185\u6838\u624d\u4f1a\u628a\u6587\u4ef6\u5185\u5bb9\u4ece\u78c1\u76d8\u4e0a\u5220\u9664\u3002<\/div>\n<div><\/div>\n<div>\u8fd8\u53ef\u4ee5\u5728\u4e0d\u540c\u76ee\u5f55\uff0c\u4f46\u540c\u4e00\u6587\u4ef6\u7cfb\u7edf\u4e2d\u5efa\u7acb\u6587\u4ef6\u7684\u786c\u94fe\u63a5\u3002\u8bbefile1\u3001file2\u5728\u76ee\u5f55\/home\/root\/dir1\u4e2d\uff0c\u4e0b\u9762\u7684\u547d\u4ee4\uff0c\u5728\/home\/root\u4e2d\u5efa\u7acbfile2\u7684\u786c\u94fe\u63a5\u3002<\/div>\n<div><\/div>\n<div>ln file2 \/home\/root\/file2hard<\/div>\n<div>\u4e0b\u9762\u7684\u7a0b\u5e8f\uff0c\u662f\u5c06dir1\u76ee\u5f55\u4e2d\u6240\u6709\u6587\u4ef6\uff0c\u5728\u76ee\u5f55dir2\u4e2d\u5efa\u7acb\u786c\u94fe\u63a5<\/div>\n<div>#mkdir dir2<\/div>\n<div>#ln \/home\/root\/dir1\/* \/home\/root\/dir2<\/div>\n<div><\/div>\n<div>\u5982\u679c\u4f7f\u7528\u4e86 ln \u2013f existingfile newfile,\u5982\u679cnewfile\u5df2\u7ecf\u5b58\u5728\uff0c\u5219\u65e0\u8bba\u539f\u6765newfile\u662f\u4ec0\u4e48\u6587\u4ef6\uff0c\u53ea\u7528\u5f53\u524d\u7528\u6237\u5bf9\u5b83\u6709\u5199\u6743\u9650\uff0cnewfile\u5c31\u6210\u4e3aexisitngfile\u7684\u786c\u94fe\u63a5\u6587\u4ef6\u3002<\/div>\n<div><\/div>\n<div>\u5c3d\u7ba1\u786c\u94fe\u63a5\u8282\u7701\u7a7a\u95f4\uff0c\u4e5f\u662fLinux\u7cfb\u7edf\u6574\u5408\u6587\u4ef6\u7cfb\u7edf\u7684\u4f20\u7edf\u65b9\u5f0f\uff0c\u4f46\u662f\u5b58\u5728\u4e00\u4e0b\u4e0d\u8db3\u4e4b\u5904\uff1a<\/div>\n<div>\uff081\uff09\u4e0d\u53ef\u4ee5\u5728\u4e0d\u540c\u6587\u4ef6\u7cfb\u7edf\u7684\u6587\u4ef6\u95f4\u5efa\u7acb\u94fe\u63a5<\/div>\n<div>\uff082\uff09\u53ea\u6709\u8d85\u7ea7\u7528\u6237\u624d\u53ef\u4ee5\u4e3a\u76ee\u5f55\u521b\u5efa\u786c\u94fe\u63a5\u3002<\/div>\n<div><\/div>\n<div>\u4e8c\u3001\u8f6f\u94fe\u63a5\uff08\u7b26\u53f7\u94fe\u63a5\uff09<\/div>\n<div><\/div>\n<div>\u8f6f\u94fe\u63a5\u514b\u670d\u4e86\u786c\u94fe\u63a5\u7684\u4e0d\u8db3\uff0c\u6ca1\u6709\u4efb\u4f55\u6587\u4ef6\u7cfb\u7edf\u7684\u9650\u5236\uff0c\u4efb\u4f55\u7528\u6237\u53ef\u4ee5\u521b\u5efa\u6307\u5411\u76ee\u5f55\u7684\u7b26\u53f7\u94fe\u63a5\u3002\u56e0\u800c\u73b0\u5728\u66f4\u4e3a\u5e7f\u6cdb\u4f7f\u7528\uff0c\u5b83\u5177\u6709\u66f4\u5927\u7684\u7075\u6d3b\u6027\uff0c\u751a\u81f3\u53ef\u4ee5\u8de8\u8d8a\u4e0d\u540c\u673a\u5668\u3001\u4e0d\u540c\u7f51\u7edc\u5bf9\u6587\u4ef6\u8fdb\u884c\u94fe\u63a5\u3002<\/div>\n<div>\u5efa\u7acb\u8f6f\u94fe\u63a5\uff0c\u53ea\u8981\u5728ln\u540e\u9762\u52a0\u4e0a\u9009\u9879 \u2013s\uff0c\u4e0b\u9762\u4e3e\u4e2a\u4f8b\u5b50<\/div>\n<div><\/div>\n<div>[root@rekfan.com test]# ls -il<\/div>\n<div>\u603b\u8ba1 0<\/div>\n<div>1491138 -rw-r\u2013r\u2013 1 root root 48 07-14 14:17 file1<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2hand<\/div>\n<div><\/div>\n<div>[root@rekfan.com test]# ln -s file1 file1soft<\/div>\n<div>[root@rekfan.com test]# ls -il<\/div>\n<div>\u603b\u8ba1 0<\/div>\n<div>1491138 -rw-r\u2013r\u2013 1 root root 48 07-14 14:17 file1<\/div>\n<div>1491140 lrwxrwxrwx 1 root root 5 07-14 14:24 file1soft -&gt; file1<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2hand<\/div>\n<div><\/div>\n<div>\u4ece\u4e0a\u9762\u94fe\u63a5\u540e\u7684\u7ed3\u679c\u53ef\u4ee5\u770b\u51fa\u6765\u8f6f\u94fe\u63a5\u4e0e\u786c\u94fe\u63a5\uff0c\u533a\u522b\u4e0d\u4ec5\u4ec5\u662f\u5728\u6982\u5ff5\u4e0a\uff0c\u5728\u5b9e\u73b0\u4e0a\u4e5f\u662f\u4e0d\u540c\u7684\u3002\u533a\u522b\uff1a\u786c\u94fe\u63a5\u539f\u6587\u4ef6\uff06\u94fe\u63a5\u6587\u4ef6\u516c\u7528\u4e00\u4e2ainode\u53f7\uff0c\u8bf4\u660e\u4ed6\u4eec\u662f\u540c\u4e00\u4e2a\u6587\u4ef6\uff0c\u800c\u8f6f\u94fe\u63a5\u539f\u6587\u4ef6\uff06\u94fe\u63a5\u6587\u4ef6\u62e5\u6709\u4e0d\u540c\u7684inode\u53f7\uff0c\u8868\u660e\u4ed6\u4eec\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u6587\u4ef6\uff1b\u5728\u6587\u4ef6\u5c5e\u6027\u4e0a\u8f6f\u94fe\u63a5\u660e\u786e\u5199\u51fa\u4e86\u662f\u94fe\u63a5\u6587\u4ef6\uff0c\u800c\u786c\u94fe\u63a5\u6ca1\u6709\u5199\u51fa\u6765\uff0c\u56e0\u4e3a\u5728\u672c\u8d28\u4e0a\u786c\u94fe\u63a5\u6587\u4ef6\u548c\u539f\u6587\u4ef6\u662f\u5b8c\u5168\u5e73\u7b49\u5173\u7cfb\uff1b\u94fe\u63a5\u6570\u76ee\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u8f6f\u94fe\u63a5\u7684\u94fe\u63a5\u6570\u76ee\u4e0d\u4f1a\u589e\u52a0\uff1b\u6587\u4ef6\u5927\u5c0f\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u786c\u94fe\u63a5\u6587\u4ef6\u663e\u793a\u7684\u5927\u5c0f\u662f\u8ddf\u539f\u6587\u4ef6\u662f\u4e00\u6837\u7684\uff0c\u8fd9\u7528\u5f3a\u8c03\uff0c\u56e0\u4e3a\u662f\u7b49\u540c\u7684\u561b\uff0c\u800c\u8fd9\u91cc\u8f6f\u94fe\u63a5\u663e\u793a\u7684\u5927\u5c0f\u4e0e\u539f\u6587\u4ef6\u5c31\u4e0d\u540c\u4e86\uff0cfile1\u5927\u5c0f\u662f48B\uff0c\u800cfile1soft\u662f5B\uff0c\u8fd9\u91cc\u9762\u76845\u5b9e\u9645\u4e0a\u5c31\u662f\u201cfile1\u201d\u7684\u5927\u5c0f\u3002<\/div>\n<div><\/div>\n<div>\u603b\u4e4b\uff0c\u5efa\u7acb\u8f6f\u94fe\u63a5\u5c31\u662f\u5efa\u7acb\u4e86\u4e00\u4e2a\u65b0\u6587\u4ef6\u3002\u5f53\u8bbf\u95ee\u94fe\u63a5\u6587\u4ef6\u65f6\uff0c\u7cfb\u7edf\u5c31\u4f1a\u53d1\u73b0\u4ed6\u662f\u4e2a\u94fe\u63a5\u6587\u4ef6\uff0c\u5b83\u8bfb\u53d6\u94fe\u63a5\u6587\u4ef6\u627e\u5230\u771f\u6b63\u8981\u8bbf\u95ee\u7684\u6587\u4ef6\u3002<\/div>\n<div>\u5728\u4e0d\u540c\u7cfb\u7edf\u4e4b\u95f4\u5efa\u7acb\u8f6f\u94fe\u63a5\u3001\u5bf9\u76ee\u5f55\u5efa\u7acb\u94fe\u63a5\uff0c\u8fd9\u91cc\u5c31\u4e0d\u4e3e\u4f8b\u4e86\uff0c\u8bfb\u8005\u53ef\u4ee5\u81ea\u5df1\u53bb\u5c1d\u8bd5\uff0c\u6211\u4e5f\u662f\u5728\u4e0d\u65ad\u5b9e\u8df5\u4e2d\u5b66\u4e60\u7684\u3002<\/div>\n<div>\u5f53\u7136\u8f6f\u94fe\u63a5\u4e5f\u6709\u786c\u94fe\u63a5\u6ca1\u6709\u7684\u7f3a\u70b9\uff0c\u56e0\u4e3a\u94fe\u63a5\u6587\u4ef6\u5305\u542b\u6709\u539f\u6587\u4ef6\u7684\u8def\u5f84\u4fe1\u606f\uff0c\u6240\u4ee5\u5f53\u539f\u6587\u4ef6\u4ece\u4e00\u4e2a\u76ee\u5f55\u4e0b\u79fb\u5230\u5176\u4ed6\u76ee\u5f55\u4e2d\uff0c\u518d\u8bbf\u95ee\u94fe\u63a5\u6587\u4ef6\uff0c\u7cfb\u7edf\u5c31\u627e\u4e0d\u5230\u4e86\uff5e\uff5e\uff0c\u800c\u786c\u94fe\u63a5\u5c31\u6ca1\u6709\u8fd9\u4e2a\u7f3a\u9677\uff0c\u4f60\u60f3\u600e\u4e48\u79fb\u5c31\u600e\u4e48\u79fb\uff08\u5475\u5475\uff09\uff1b\u8fd8\u6709\u5b83\u8981\u7cfb\u7edf\u5206\u914d\u989d\u5916\u7684\u7a7a\u95f4\u7528\u4e8e\u5efa\u7acb\u65b0\u7684\u7d22\u5f15\u8282\u70b9\u548c\u4fdd\u5b58\u539f\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/div>\n<div><\/div>\n<div>\u8865\u5145\u4e00\u4e0b\uff1a\u53ef\u4ee5\u901a\u8fc7symlink\u6765\u67e5\u770b\u94fe\u63a5\u6587\u4ef6\uff0c\u53ef\u4ee5\u7528 man symlink\u6765\u5b66\u4e60\u3002<\/div>\n<div><\/div>\n<div>\u4e09\u3001\u5220\u9664\u94fe\u63a5<\/div>\n<div><\/div>\n<div>\u6709\u521b\u5efa\u5c31\u6709\u5220\u9664<\/div>\n<div><\/div>\n<div>rm -rf symbolic_name \u6ce8\u610f\u4e0d\u662frm -rf symbolic_name\/<\/div>\n<div><\/div>\n<div><\/div>\n<div>[root@rekfan.com test]# ls -il<\/div>\n<div>\u603b\u8ba1 0<\/div>\n<div>1491138 -rw-r\u2013r\u2013 1 root root 0 07-14 14:17 file1<\/div>\n<div>1491140 lrwxrwxrwx 1 root root 5 07-14 14:24 file1soft -&gt; file1<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2hand<\/div>\n<div>[root@rekfan.com test]# rm -rf file1soft<\/div>\n<div>[root@rekfan.com test]# ls -il<\/div>\n<div>\u603b\u8ba1 0<\/div>\n<div>1491138 -rw-r\u2013r\u2013 1 root root 0 07-14 14:17 file1<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2<\/div>\n<div>1491139 -rw-r\u2013r\u2013 2 root root 0 07-14 14:17 file2hand<\/div>\n<div>[root@rekfan.com test]#<\/div>\n<div><\/div>\n<div>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/div>\n<div>linux \u8f6f\u8fde\u63a5\u548c\u786c\u94fe\u63a5\u7684\u533a\u522b:<\/div>\n<div>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/div>\n<div><\/div>\n<div>4\u70b9\u4e0d\u540c \uff1a<\/div>\n<div>\uff081\uff09\u8f6f\u8fde\u63a5\u53ef\u4ee5 \u8de8\u6587\u4ef6\u7cfb\u7edf \uff0c\u786c\u8fde\u63a5\u4e0d\u53ef\u4ee5 \u3002<\/div>\n<div>\u5b9e\u8df5\u7684\u65b9\u6cd5\u5c31\u662f\u7528\u5171\u4eab\u6587\u4ef6\u628aWindows\u4e0b\u7684 aa.txt\u6587\u672c\u6587\u6863\u8fde\u63a5\u5230linux\u4e0b\/root\u76ee\u5f55 \u4e0b bb,cc . ln -s aa.txt<\/div>\n<div>\/root\/bb \u8fde\u63a5\u6210\u529f \u3002ln aa.txt \/root\/bb \u5931\u8d25 \u3002<\/div>\n<div><\/div>\n<div>\uff082\uff09\u5173\u4e8e I\u8282\u70b9\u7684\u95ee\u9898 \u3002\u786c\u8fde\u63a5\u4e0d\u7ba1\u6709\u591a\u5c11\u4e2a\uff0c\u90fd\u6307\u5411\u7684\u662f\u540c\u4e00\u4e2aI\u8282\u70b9\uff0c\u4f1a\u628a \u7ed3\u70b9\u8fde\u63a5\u6570\u589e\u52a0 \uff0c\u53ea\u8981\u7ed3\u70b9\u7684\u8fde\u63a5\u6570\u4e0d\u662f 0\uff0c\u6587\u4ef6\u5c31\u4e00\u76f4\u5b58\u5728 \uff0c\u4e0d\u7ba1\u4f60\u5220\u9664\u7684\u662f<\/div>\n<div><\/div>\n<div>\u6e90\u6587\u4ef6\u8fd8\u662f \u8fde\u63a5\u7684\u6587\u4ef6 \u3002\u53ea\u8981\u6709\u4e00\u4e2a\u5b58\u5728 \uff0c\u6587\u4ef6\u5c31 \u5b58\u5728 \uff08\u5176\u5b9e\u4e5f\u4e0d\u5206\u4ec0\u4e48 \u6e90\u6587\u4ef6\u8fde\u63a5\u6587\u4ef6\u7684 \uff0c\u56e0\u4e3a\u4ed6\u4eec\u6307\u5411\u90fd\u662f\u540c\u4e00\u4e2a I\u8282\u70b9\uff09\u3002 \u5f53\u4f60\u4fee\u6539\u6e90\u6587\u4ef6\u6216\u8005\u8fde\u63a5\u6587\u4ef6<\/div>\n<div><\/div>\n<div>\u4efb\u4f55\u4e00\u4e2a\u7684\u65f6\u5019 \uff0c\u5176\u4ed6\u7684 \u6587\u4ef6\u90fd\u4f1a\u505a\u540c\u6b65\u7684\u4fee\u6539 \u3002\u8f6f\u94fe\u63a5\u4e0d\u76f4\u63a5\u4f7f\u7528i\u8282\u70b9\u53f7\u4f5c\u4e3a\u6587\u4ef6\u6307\u9488,\u800c\u662f\u4f7f\u7528\u6587\u4ef6\u8def\u5f84\u540d\u4f5c\u4e3a\u6307\u9488\u3002\u6240\u4ee5 \u5220\u9664\u8fde\u63a5\u6587\u4ef6 \u5bf9\u6e90\u6587\u4ef6\u65e0\u5f71\u54cd\uff0c\u4f46<\/div>\n<div><\/div>\n<div>\u662f \u5220\u9664 \u6e90\u6587\u4ef6\uff0c\u8fde\u63a5\u6587\u4ef6\u5c31\u4f1a\u627e\u4e0d\u5230\u8981\u6307\u5411\u7684\u6587\u4ef6 \u3002\u8f6f\u94fe\u63a5\u6709\u81ea\u5df1\u7684inode,\u5e76\u5728\u78c1\u76d8\u4e0a\u6709\u4e00\u5c0f\u7247\u7a7a\u95f4\u5b58\u653e\u8def\u5f84\u540d.<\/div>\n<div><\/div>\n<div>\uff083\uff09\u8f6f\u8fde\u63a5\u53ef\u4ee5\u5bf9\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u6587\u4ef6\u540d\u8fdb\u884c\u8fde\u63a5 \u3002<\/div>\n<div><\/div>\n<div>\uff084\uff09\u8f6f\u8fde\u63a5\u53ef\u4ee5\u5bf9\u76ee\u5f55\u8fdb\u884c\u8fde\u63a5\u3002<\/div>\n<div><\/div>\n<div>\u5907\u6ce8\uff1aI\u8282\u70b9 :\u5b83\u662fUNIX\u5185\u90e8\u7528\u4e8e\u63cf\u8ff0\u6587\u4ef6\u7279\u6027\u7684\u6570\u636e\u7ed3\u6784.\u6211\u4eec\u901a\u5e38\u79f0I\u8282\u70b9\u4e3a\u6587\u4ef6\u7d22\u5f15\u7ed3\u70b9(\u4fe1\u606f\u7ed3\u70b9).i\u8282\u70b9 \u542b\u6709\u5173\u4e8e\u6587\u4ef6\u7684\u5927\u90e8\u5206\u7684\u91cd\u8981\u4fe1 \u606f,\u5305\u62ec\u6587\u4ef6\u6570\u636e\u5757\u5728<\/div>\n<div><\/div>\n<div>\u78c1\u76d8\u4e0a\u7684\u5730\u5740.\u6bcf\u4e00\u4e2aI\u8282\u70b9\u6709\u5b83\u81ea\u5df1\u7684\u6807\u5fd7\u53f7,\u6211\u4eec\u79f0\u4e3a\u6587\u4ef6\u987a\u5e8f\u53f7.I\u8282\u70b9\u5305\u542b\u7684\u4fe1\u606f 1.\u6587\u4ef6\u7c7b\u578b 2.\u6587\u4ef6\u5c5e\u4e3b\u5173\u7cfb 3.\u6587\u4ef6\u7684\u8bbf\u95ee\u6743\u9650 4.\u6587\u4ef6\u7684\u65f6\u95f4\u622a.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Linux\u7cfb\u7edf\u4e2d,\u5185\u6838\u4e3a\u6bcf\u4e00\u4e2a\u65b0\u521b\u5efa\u7684\u6587\u4ef6\u5206\u914d\u4e00\u4e2aInode(\u7d22\u5f15\u7ed3\u70b9),\u6bcf\u4e2a\u6587\u4ef6\u90fd\u6709\u4e00\u4e2a\u60df\u4e00\u7684inode\u53f7 &#8230; <a title=\"linux\u4e0b\u521b\u5efa\u548c\u5220\u9664\u8f6f\u3001\u786c\u94fe\u63a5\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/jishu\/linux\/linux%e4%b8%8b%e5%88%9b%e5%bb%ba%e5%92%8c%e5%88%a0%e9%99%a4%e8%bd%af%e3%80%81%e7%a1%ac%e9%93%be%e6%8e%a5\/\" aria-label=\"\u9605\u8bfb linux\u4e0b\u521b\u5efa\u548c\u5220\u9664\u8f6f\u3001\u786c\u94fe\u63a5\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[395,396,121],"class_list":["post-1127","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-396","tag-121"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/1127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=1127"}],"version-history":[{"count":2,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/1127\/revisions"}],"predecessor-version":[{"id":8843,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/1127\/revisions\/8843"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=1127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=1127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=1127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}