{"id":89549,"date":"2024-02-24T22:01:12","date_gmt":"2024-02-24T14:01:12","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=89549"},"modified":"2024-02-24T22:01:12","modified_gmt":"2024-02-24T14:01:12","slug":"linux-users-guidance","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-users-guidance.html","title":{"rendered":"Linux\u6587\u4ef6\u94fe\u63a5\u4e4b\u4f7f\u7528\u6982\u8981"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728\u6211\u4e3a opensource.com \u5199\u8fc7\u7684\u5173\u4e8e Linux \u6587\u4ef6\u7cfb\u7edf\u65b9\u65b9\u9762\u9762\u7684\u6587\u7ae0\u4e2d\uff0c\u5305\u62ec Linux \u7684 EXT4 \u6587\u4ef6\u7cfb\u7edf\u7684\u5386\u53f2\u3001\u7279\u6027\u4ee5\u53ca\u6700\u4f73\u5b9e\u8df5\uff1b \u5728 Linux \u4e2d\u7ba1\u7406\u8bbe\u5907\uff1bLinux \u6587\u4ef6\u7cfb\u7edf\u6982\u89c8 \u548c \u7528\u6237\u6307\u5357\uff1a\u903b\u8f91\u5377\u7ba1\u7406\uff0c\u6211\u66fe\u7b80\u8981\u7684\u63d0\u5230\u8fc7 Linux \u6587\u4ef6\u7cfb\u7edf\u4e00\u4e2a\u6709\u8da3\u7684\u7279\u6027\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u4ece\u591a\u4e2a\u4f4d\u7f6e\u6765\u8bbf\u95ee Linux \u6587\u4ef6\u76ee\u5f55\u6811\u4e2d\u7684\u6587\u4ef6\u6765\u7b80\u5316\u4e00\u4e9b\u4efb\u52a1\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5b66\u4e60\u5982\u4f55\u4f7f\u7528\u94fe\u63a5\uff0c\u901a\u8fc7\u4ece Linux \u6587\u4ef6\u7cfb\u7edf\u591a\u4e2a\u4f4d\u7f6e\u6765\u8bbf\u95ee\u6587\u4ef6\uff0c\u53ef\u4ee5\u8ba9\u65e5\u5e38\u5de5\u4f5c\u53d8\u5f97\u8f7b\u677e\u3002<\/p>\n

Linux \u6587\u4ef6\u7cfb\u7edf\u4e2d\u6709\u4e24\u79cd\u94fe\u63a5link\uff1a\u786c\u94fe\u63a5hard link\u548c\u8f6f\u94fe\u63a5soft link\u3002\u867d\u7136\u4e8c\u8005\u5dee\u522b\u663e\u8457\uff0c\u4f46\u90fd\u7528\u6765\u89e3\u51b3\u76f8\u4f3c\u7684\u95ee\u9898\u3002\u5b83\u4eec\u90fd\u63d0\u4f9b\u4e86\u5bf9\u5355\u4e2a\u6587\u4ef6\u7684\u591a\u4e2a\u76ee\u5f55\u9879\uff08\u5f15\u7528\uff09\u7684\u8bbf\u95ee\uff0c\u4f46\u5b9e\u73b0\u5374\u5927\u4e3a\u4e0d\u540c\u3002\u94fe\u63a5\u7684\u5f3a\u5927\u529f\u80fd\u8d4b\u4e88\u4e86 Linux \u6587\u4ef6\u7cfb\u7edf\u7075\u6d3b\u6027\uff0c\u56e0\u4e3a\u4e00\u5207\u7686\u662f\u6587\u4ef6\u3002<\/p>\n

\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u6211\u66fe\u53d1\u73b0\u4e00\u4e9b\u7a0b\u5e8f\u8981\u6c42\u7279\u5b9a\u7684\u7248\u672c\u5e93\u65b9\u53ef\u8fd0\u884c\u3002 \u5f53\u7528\u5347\u7ea7\u540e\u7684\u5e93\u66ff\u4ee3\u65e7\u5e93\u540e\uff0c\u7a0b\u5e8f\u4f1a\u5d29\u6e83\uff0c\u63d0\u793a\u65e7\u7248\u672c\u5e93\u7f3a\u5931\u3002\u901a\u5e38\uff0c\u5e93\u540d\u7684\u552f\u4e00\u53d8\u5316\u5c31\u662f\u7248\u672c\u53f7\u3002\u51fa\u4e8e\u76f4\u89c9\uff0c\u6211\u4ec5\u4ec5\u7ed9\u7a0b\u5e8f\u6dfb\u52a0\u4e86\u4e00\u4e2a\u65b0\u7684\u5e93\u94fe\u63a5\uff0c\u5e76\u4ee5\u65e7\u5e93\u540d\u79f0\u547d\u540d\u3002\u6211\u8bd5\u7740\u518d\u6b21\u542f\u52a8\u7a0b\u5e8f\uff0c\u8fd0\u884c\u826f\u597d\u3002\u7a0b\u5e8f\u5c31\u662f\u4e00\u4e2a\u6e38\u620f\uff0c\u4eba\u4eba\u90fd\u660e\u767d\uff0c\u6bcf\u4e2a\u73a9\u5bb6\u90fd\u4f1a\u5c3d\u529b\u4f7f\u6e38\u620f\u8fdb\u884c\u4e0b\u53bb\u3002<\/p>\n

\u4e8b\u5b9e\u4e0a\uff0c\u51e0\u4e4e\u6240\u6709\u7684\u5e94\u7528\u7a0b\u5e8f\u94fe\u63a5\u5e93\u90fd\u4f7f\u7528\u901a\u7528\u7684\u547d\u540d\u89c4\u5219\uff0c\u94fe\u63a5\u540d\u79f0\u4e2d\u5305\u542b\u4e86\u4e3b\u7248\u672c\u53f7\uff0c\u94fe\u63a5\u6240\u6307\u5411\u7684\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u4e2d\u540c\u6837\u5305\u542b\u4e86\u5c0f\u7248\u672c\u53f7\u3002\u518d\u6bd4\u5982\uff0c\u7a0b\u5e8f\u7684\u4e00\u4e9b\u5fc5\u9700\u6587\u4ef6\u4e3a\u4e86\u8fce\u5408 Linux \u6587\u4ef6\u7cfb\u7edf\u89c4\u8303\uff0c\u4ece\u4e00\u4e2a\u76ee\u5f55\u79fb\u52a8\u5230\u53e6\u4e00\u4e2a\u76ee\u5f55\u4e2d\uff0c\u7cfb\u7edf\u4e3a\u4e86\u5411\u540e\u517c\u5bb9\u90a3\u4e9b\u4e0d\u80fd\u83b7\u53d6\u8fd9\u4e9b\u6587\u4ef6\u65b0\u4f4d\u7f6e\u7684\u7a0b\u5e8f\u5728\u65e7\u7684\u76ee\u5f55\u4e2d\u5b58\u653e\u4e86\u8fd9\u4e9b\u6587\u4ef6\u7684\u94fe\u63a5\u3002\u5982\u679c\u4f60\u5bf9 \/lib64 \u76ee\u5f55\u505a\u4e00\u4e2a\u957f\u6e05\u5355\u5217\u8868\uff0c\u4f60\u4f1a\u53d1\u73b0\u5f88\u591a\u8fd9\u6837\u7684\u4f8b\u5b50\u3002<\/p>\n

lrwxrwxrwx. 1 root root 36 Dec 8 2016 cracklib_dict.hwm -> ..\/..\/usr\/share\/cracklib\/pw_dict.hwm\r\nlrwxrwxrwx. 1 root root 36 Dec 8 2016 cracklib_dict.pwd -> ..\/..\/usr\/share\/cracklib\/pw_dict.pwd\r\nlrwxrwxrwx. 1 root root 36 Dec 8 2016 cracklib_dict.pwi -> ..\/..\/usr\/share\/cracklib\/pw_dict.pwi\r\nlrwxrwxrwx. 1 root root 27 Jun 9 2016 libaccountsservice.so.0 -> libaccountsservice.so.0.0.0\r\n-rwxr-xr-x. 1 root root 288456 Jun 9 2016 libaccountsservice.so.0.0.0\r\nlrwxrwxrwx 1 root root 15 May 17 11:47 libacl.so.1 -> libacl.so.1.1.0\r\n-rwxr-xr-x 1 root root 36472 May 17 11:47 libacl.so.1.1.0\r\nlrwxrwxrwx. 1 root root 15 Feb 4 2016 libaio.so.1 -> libaio.so.1.0.1\r\n-rwxr-xr-x. 1 root root 6224 Feb 4 2016 libaio.so.1.0.0\r\n-rwxr-xr-x. 1 root root 6224 Feb 4 2016 libaio.so.1.0.1\r\nlrwxrwxrwx. 1 root root 30 Jan 16 16:39 libakonadi-calendar.so.4 -> libakonadi-calendar.so.4.14.26\r\n-rwxr-xr-x. 1 root root 816160 Jan 16 16:39 libakonadi-calendar.so.4.14.26\r\nlrwxrwxrwx. 1 root root 29 Jan 16 16:39 libakonadi-contact.so.4 -> libakonadi-contact.so.4.14.26\r\n<\/pre>\n

\/lib64 \u76ee\u5f55\u4e0b\u7684\u4e00\u4e9b\u94fe\u63a5<\/p>\n

\u5728\u4e0a\u9762\u5c55\u793a\u7684 \/lib64 \u76ee\u5f55\u6e05\u5355\u5217\u8868\u4e2d\uff0c\u6587\u4ef6\u6a21\u5f0f\u7b2c\u4e00\u4e2a\u5b57\u6bcd l \uff08\u5c0f\u5199\u5b57\u6bcd l\uff09\u8868\u793a\u8fd9\u662f\u4e00\u4e2a\u8f6f\u94fe\u63a5\uff08\u53c8\u79f0\u7b26\u53f7\u94fe\u63a5\uff09\u3002<\/p>\n

\u786c\u94fe\u63a5<\/strong><\/div>\n

\u5728 Linux \u7684 EXT4 \u6587\u4ef6\u7cfb\u7edf\u7684\u5386\u53f2\u3001\u7279\u6027\u4ee5\u53ca\u6700\u4f73\u5b9e\u8df5\u4e00\u6587\u4e2d\uff0c\u6211\u66fe\u63a2\u8ba8\u8fc7\u8fd9\u6837\u4e00\u4e2a\u4e8b\u5b9e\uff0c\u6bcf\u4e2a\u6587\u4ef6\u90fd\u6709\u4e00\u4e2a\u5305\u542b\u8be5\u6587\u4ef6\u4fe1\u606f\u7684 inode\uff0c\u5305\u542b\u4e86\u8be5\u6587\u4ef6\u7684\u4f4d\u7f6e\u4fe1\u606f\u3002\u4e0a\u8ff0\u6587\u7ae0\u4e2d\u7684\u56fe2\u5c55\u793a\u4e86\u4e00\u4e2a\u6307\u5411 inode \u7684\u5355\u4e00\u76ee\u5f55\u9879\u3002\u6bcf\u4e2a\u6587\u4ef6\u90fd\u81f3\u5c11\u6709\u4e00\u4e2a\u76ee\u5f55\u9879\u6307\u5411\u63cf\u8ff0\u8be5\u6587\u4ef6\u4fe1\u606f\u7684 inode \uff0c\u76ee\u5f55\u9879\u662f\u4e00\u4e2a\u786c\u94fe\u63a5\uff0c\u56e0\u6b64\u6bcf\u4e2a\u6587\u4ef6\u81f3\u5c11\u90fd\u6709\u4e00\u4e2a\u786c\u94fe\u63a5\u3002<\/p>\n

\u5982\u4e0b\u56fe 1 \u6240\u793a\uff0c\u591a\u4e2a\u76ee\u5f55\u9879\u6307\u5411\u4e86\u540c\u4e00 inode \u3002\u8fd9\u4e9b\u76ee\u5f55\u9879\u90fd\u662f\u786c\u94fe\u63a5\u3002\u6211\u66fe\u5728\u4e09\u4e2a\u76ee\u5f55\u9879\u4e2d\u4f7f\u7528\u6ce2\u6d6a\u7ebf (~) \u7684\u7f29\u5199\uff0c\u8fd9\u662f\u7528\u6237\u76ee\u5f55\u7684\u60ef\u4f8b\u8868\u793a\uff0c\u56e0\u6b64\u5728\u8be5\u4f8b\u4e2d\u6ce2\u6d6a\u7ebf\u7b49\u540c\u4e8e \/home\/user \u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u7b2c\u56db\u4e2a\u76ee\u5f55\u9879\u662f\u4e00\u4e2a\u5b8c\u5168\u4e0d\u540c\u7684\u76ee\u5f55\uff0c\/home\/shared\uff0c\u53ef\u80fd\u662f\u8be5\u8ba1\u7b97\u673a\u4e0a\u7528\u6237\u7684\u5171\u4eab\u6587\u4ef6\u76ee\u5f55\u3002<\/p>\n

 <\/p>\n

\"\"<\/p>\n

\u786c\u94fe\u63a5\u88ab\u9650\u5236\u5728\u4e00\u4e2a\u5355\u4e00\u7684\u6587\u4ef6\u7cfb\u7edf\u4e2d\u3002\u6b64\u5904\u7684\u201c\u6587\u4ef6\u7cfb\u7edf\u201d \u662f\u6307\u6302\u8f7d\u5728\u7279\u5b9a\u6302\u8f7d\u70b9\u4e0a\u7684\u5206\u533a\u6216\u903b\u8f91\u5377\uff0c\u6b64\u4f8b\u4e2d\u662f \/home\u3002\u8fd9\u662f\u56e0\u4e3a\u5728\u6bcf\u4e2a\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684 inode \u53f7\u90fd\u662f\u552f\u4e00\u7684\u3002\u800c\u5728\u4e0d\u540c\u7684\u6587\u4ef6\u7cfb\u7edf\u4e2d\uff0c\u5982 \/var \u6216 \/opt\uff0c\u4f1a\u6709\u548c \/home \u4e2d\u76f8\u540c\u7684 inode \u53f7\u3002<\/p>\n

\u56e0\u4e3a\u6240\u6709\u7684\u786c\u94fe\u63a5\u90fd\u6307\u5411\u4e86\u5305\u542b\u6587\u4ef6\u5143\u4fe1\u606f\u7684\u5355\u4e00 inode \uff0c\u8fd9\u4e9b\u5c5e\u6027\u90fd\u662f\u6587\u4ef6\u7684\u4e00\u90e8\u5206\uff0c\u50cf\u6240\u5c5e\u5173\u7cfb\u3001\u6743\u9650\u3001\u5230\u8be5 inode \u7684\u786c\u94fe\u63a5\u6570\u76ee\uff0c\u5bf9\u6bcf\u4e2a\u786c\u94fe\u63a5\u6765\u8bf4\u8fd9\u4e9b\u7279\u6027\u6ca1\u6709\u4ec0\u4e48\u4e0d\u540c\u7684\u3002\u8fd9\u662f\u4e00\u4e2a\u6587\u4ef6\u6240\u5177\u6709\u7684\u4e00\u7ec4\u5c5e\u6027\u3002\u552f\u4e00\u80fd\u533a\u5206\u8fd9\u4e9b\u6587\u4ef6\u7684\u662f\u5305\u542b\u5728 inode \u4fe1\u606f\u4e2d\u7684\u6587\u4ef6\u540d\u3002\u94fe\u63a5\u5230\u540c\u4e00\u76ee\u5f55\u4e2d\u7684\u5355\u4e00\u6587\u4ef6\/ inode \u7684\u786c\u94fe\u63a5\u5fc5\u987b\u62e5\u6709\u4e0d\u540c\u7684\u6587\u4ef6\u540d\uff0c\u8fd9\u662f\u57fa\u4e8e\u540c\u4e00\u76ee\u5f55\u4e0b\u4e0d\u80fd\u5b58\u5728\u91cd\u590d\u7684\u6587\u4ef6\u540d\u7684\u4e8b\u5b9e\u7684\u3002<\/p>\n

\u6587\u4ef6\u7684\u786c\u94fe\u63a5\u6570\u76ee\u53ef\u901a\u8fc7 ls -l \u6765\u67e5\u770b\uff0c\u5982\u679c\u4f60\u60f3\u67e5\u770b\u5b9e\u9645\u8282\u70b9\u53f7\uff0c\u53ef\u4f7f\u7528 ls -li \u547d\u4ee4\u3002<\/p>\n

\u7b26\u53f7\uff08\u8f6f\uff09\u94fe\u63a5<\/strong><\/div>\n

\u786c\u94fe\u63a5\u548c\u8f6f\u94fe\u63a5\uff08\u4e5f\u79f0\u4e3a\u7b26\u53f7\u94fe\u63a5symlink\uff09\u7684\u533a\u522b\u5728\u4e8e\uff0c\u786c\u94fe\u63a5\u76f4\u63a5\u6307\u5411\u5c5e\u4e8e\u8be5\u6587\u4ef6\u7684 inode \uff0c\u800c\u8f6f\u94fe\u63a5\u76f4\u63a5\u6307\u5411\u4e00\u4e2a\u76ee\u5f55\u9879\uff0c\u5373\u6307\u5411\u4e00\u4e2a\u786c\u94fe\u63a5\u3002\u56e0\u4e3a\u8f6f\u94fe\u63a5\u6307\u5411\u7684\u662f\u4e00\u4e2a\u6587\u4ef6\u7684\u786c\u94fe\u63a5\u800c\u975e\u8be5\u6587\u4ef6\u7684 inode \uff0c\u6240\u4ee5\u5b83\u4eec\u5e76\u4e0d\u4f9d\u8d56\u4e8e inode \u53f7\uff0c\u8fd9\u4f7f\u5f97\u5b83\u4eec\u80fd\u8de8\u8d8a\u4e0d\u540c\u7684\u6587\u4ef6\u7cfb\u7edf\u3001\u5206\u533a\u548c\u903b\u8f91\u5377\u8d77\u4f5c\u7528\u3002<\/p>\n

\u8f6f\u94fe\u63a5\u7684\u7f3a\u70b9\u662f\uff0c\u4e00\u65e6\u5b83\u6240\u6307\u5411\u7684\u786c\u94fe\u63a5\u88ab\u5220\u9664\u6216\u91cd\u547d\u540d\u540e\uff0c\u8be5\u8f6f\u94fe\u63a5\u5c31\u5931\u6548\u4e86\u3002\u8f6f\u94fe\u63a5\u867d\u7136\u8fd8\u5728\uff0c\u4f46\u6240\u6307\u5411\u7684\u786c\u94fe\u63a5\u5df2\u4e0d\u5b58\u5728\u3002\u6240\u5e78\u7684\u662f\uff0cls \u547d\u4ee4\u80fd\u4ee5\u7ea2\u5e95\u767d\u5b57\u7684\u65b9\u5f0f\u5728\u5176\u5217\u8868\u4e2d\u9ad8\u4eae\u663e\u793a\u5931\u6548\u7684\u8f6f\u94fe\u63a5\u3002<\/p>\n

\u5b9e\u9a8c\u9879\u76ee: \u94fe\u63a5\u5b9e\u9a8c<\/strong><\/div>\n

\u6211\u8ba4\u4e3a\u6700\u5bb9\u6613\u7406\u89e3\u94fe\u63a5\u7528\u6cd5\u53ca\u5176\u5dee\u5f02\u7684\u65b9\u6cd5\u662f\u52a8\u624b\u642d\u5efa\u4e00\u4e2a\u9879\u76ee\u3002\u8fd9\u4e2a\u9879\u76ee\u5e94\u4ee5\u975e\u8d85\u7ea7\u7528\u6237\u7684\u8eab\u4efd\u5728\u4e00\u4e2a\u7a7a\u76ee\u5f55\u4e0b\u8fdb\u884c\u3002\u6211\u521b\u5efa\u4e86 ~\/temp \u76ee\u5f55\u505a\u8fd9\u4e2a\u5b9e\u9a8c\uff0c\u4f60\u4e5f\u53ef\u4ee5\u8fd9\u4e48\u505a\u3002\u8fd9\u4e48\u505a\u53ef\u4e3a\u9879\u76ee\u521b\u5efa\u4e00\u4e2a\u5b89\u5168\u7684\u73af\u5883\u4e14\u63d0\u4f9b\u4e00\u4e2a\u65b0\u7684\u7a7a\u76ee\u5f55\u8ba9\u7a0b\u5e8f\u8fd0\u4f5c\uff0c\u5982\u6b64\u4ee5\u6765\u8fd9\u513f\u4ec5\u5b58\u653e\u548c\u7a0b\u5e8f\u6709\u5173\u7684\u6587\u4ef6\u3002<\/p>\n

\u521d\u59cb\u5de5\u4f5c<\/strong><\/div>\n

\u9996\u5148\uff0c\u5728\u4f60\u8981\u8fdb\u884c\u5b9e\u9a8c\u7684\u76ee\u5f55\u4e0b\u4e3a\u8be5\u9879\u76ee\u4e2d\u7684\u4efb\u52a1\u521b\u5efa\u4e00\u4e2a\u4e34\u65f6\u76ee\u5f55\uff0c\u786e\u4fdd\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\uff08PWD\uff09\u662f\u4f60\u7684\u4e3b\u76ee\u5f55\uff0c\u7136\u540e\u952e\u5165\u4e0b\u5217\u547d\u4ee4\u3002<\/p>\n

mkdir temp\r\n<\/pre>\n

\u4f7f\u7528\u8fd9\u4e2a\u547d\u4ee4\u5c06\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u5207\u6362\u5230 ~\/temp\u3002<\/p>\n

cd temp\r\n<\/pre>\n

\u5b9e\u9a8c\u5f00\u59cb\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u80fd\u591f\u94fe\u63a5\u5230\u7684\u6587\u4ef6\uff0c\u4e0b\u5217\u547d\u4ee4\u53ef\u5b8c\u6210\u8be5\u5de5\u4f5c\u5e76\u5411\u5176\u586b\u5145\u5185\u5bb9\u3002<\/p>\n

du -h > main.file.txt\r\n<\/pre>\n

\u4f7f\u7528 ls -l \u957f\u5217\u8868\u547d\u540d\u786e\u8ba4\u6587\u4ef6\u6b63\u786e\u5730\u521b\u5efa\u4e86\u3002\u8fd0\u884c\u7ed3\u679c\u5e94\u7c7b\u4f3c\u4e8e\u6211\u7684\u3002\u6ce8\u610f\u6587\u4ef6\u5927\u5c0f\u53ea\u6709 7 \u5b57\u8282\uff0c\u4f46\u4f60\u7684\u53ef\u80fd\u4f1a\u6709 1\uff5e2 \u5b57\u8282\u7684\u53d8\u52a8\u3002<\/p>\n

[dboth@david temp]$ ls -l\r\ntotal 4\r\n-rw-rw-r-- 1 dboth dboth 7 Jun 13 07:34 main.file.txt\r\n<\/pre>\n

\u5728\u5217\u8868\u4e2d\uff0c\u6587\u4ef6\u6a21\u5f0f\u4e32\u540e\u7684\u6570\u5b57 1 \u4ee3\u8868\u5b58\u5728\u4e8e\u8be5\u6587\u4ef6\u4e0a\u7684\u786c\u94fe\u63a5\u6570\u3002\u73b0\u5728\u5e94\u8be5\u662f 1 \uff0c\u56e0\u4e3a\u6211\u4eec\u8fd8\u6ca1\u6709\u4e3a\u8fd9\u4e2a\u6d4b\u8bd5\u6587\u4ef6\u5efa\u7acb\u4efb\u4f55\u786c\u94fe\u63a5\u3002<\/p>\n

\u5bf9\u786c\u94fe\u63a5\u8fdb\u884c\u5b9e\u9a8c<\/strong><\/div>\n

\u786c\u94fe\u63a5\u521b\u5efa\u4e00\u4e2a\u6307\u5411\u540c\u4e00 inode \u7684\u65b0\u76ee\u5f55\u9879\uff0c\u5f53\u4e3a\u6587\u4ef6\u6dfb\u52a0\u4e00\u4e2a\u786c\u94fe\u63a5\u65f6\uff0c\u4f60\u4f1a\u770b\u5230\u94fe\u63a5\u6570\u76ee\u7684\u589e\u52a0\u3002\u786e\u4fdd\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u4ecd\u4e3a ~\/temp\u3002\u521b\u5efa\u4e00\u4e2a\u6307\u5411 main.file.txt \u7684\u786c\u94fe\u63a5\uff0c\u7136\u540e\u67e5\u770b\u8be5\u76ee\u5f55\u4e0b\u6587\u4ef6\u5217\u8868\u3002<\/p>\n

[dboth@david temp]$ ln main.file.txt link1.file.txt\r\n[dboth@david temp]$ ls -l\r\ntotal 8\r\n-rw-rw-r-- 2 dboth dboth 7 Jun 13 07:34 link1.file.txt\r\n-rw-rw-r-- 2 dboth dboth 7 Jun 13 07:34 main.file.txt\r\n<\/pre>\n

\u76ee\u5f55\u4e2d\u4e24\u4e2a\u6587\u4ef6\u90fd\u6709\u4e24\u4e2a\u94fe\u63a5\u4e14\u5927\u5c0f\u76f8\u540c\uff0c\u65f6\u95f4\u6233\u4e5f\u4e00\u6837\u3002\u8fd9\u5c31\u662f\u6709\u4e00\u4e2a inode \u548c\u4e24\u4e2a\u786c\u94fe\u63a5\uff08\u5373\u8be5\u6587\u4ef6\u7684\u76ee\u5f55\u9879\uff09\u7684\u4e00\u4e2a\u6587\u4ef6\u3002\u518d\u5efa\u7acb\u4e00\u4e2a\u8be5\u6587\u4ef6\u7684\u786c\u94fe\u63a5\uff0c\u5e76\u5217\u51fa\u76ee\u5f55\u6e05\u5355\u5185\u5bb9\u3002\u4f60\u53ef\u4ee5\u5efa\u7acb\u786c\u94fe\u63a5\uff1a link1.file.txt \u6216 main.file.txt\u3002<\/p>\n

[dboth@david temp]$ ln link1.file.txt link2.file.txt ; ls -l\r\ntotal 16\r\n-rw-rw-r-- 3 dboth dboth 7 Jun 13 07:34 link1.file.txt\r\n-rw-rw-r-- 3 dboth dboth 7 Jun 13 07:34 link2.file.txt\r\n-rw-rw-r-- 3 dboth dboth 7 Jun 13 07:34 main.file.txt\r\n<\/pre>\n

\u6ce8\u610f\uff0c\u8be5\u76ee\u5f55\u4e0b\u7684\u6bcf\u4e2a\u786c\u94fe\u63a5\u5fc5\u987b\u4f7f\u7528\u4e0d\u540c\u7684\u540d\u79f0\uff0c\u56e0\u4e3a\u540c\u4e00\u76ee\u5f55\u4e0b\u7684\u4e24\u4e2a\u6587\u4ef6\u4e0d\u80fd\u62e5\u6709\u76f8\u540c\u7684\u6587\u4ef6\u540d\u3002\u8bd5\u7740\u521b\u5efa\u4e00\u4e2a\u548c\u73b0\u5b58\u94fe\u63a5\u540d\u79f0\u76f8\u540c\u7684\u786c\u94fe\u63a5\u3002<\/p>\n

[dboth@david temp]$ ln main.file.txt link2.file.txt\r\nln: failed to create hard link 'link2.file.txt': File exists\r\n<\/pre>\n

\u663e\u7136\u4e0d\u884c\uff0c\u56e0\u4e3a link2.file.txt \u5df2\u7ecf\u5b58\u5728\u3002\u76ee\u524d\u4e3a\u6b62\u6211\u4eec\u53ea\u5728\u540c\u4e00\u76ee\u5f55\u4e0b\u521b\u5efa\u786c\u94fe\u63a5\uff0c\u63a5\u7740\u5728\u4e34\u65f6\u76ee\u5f55\u7684\u7236\u76ee\u5f55\uff08\u4f60\u7684\u4e3b\u76ee\u5f55\uff09\u4e2d\u521b\u5efa\u4e00\u4e2a\u94fe\u63a5\u3002<\/p>\n

[dboth@david temp]$ ln main.file.txt ..\/main.file.txt ; ls -l ..\/main*\r\n-rw-rw-r-- 4 dboth dboth 7 Jun 13 07:34 main.file.txt\r\n<\/pre>\n

\u4e0a\u9762\u7684 ls \u547d\u4ee4\u663e\u793a main.file.txt \u6587\u4ef6\u786e\u5b9e\u5b58\u5728\u4e8e\u4e3b\u76ee\u5f55\u4e2d\uff0c\u4e14\u4e0e\u8be5\u6587\u4ef6\u5728 temp \u76ee\u5f55\u4e2d\u7684\u540d\u79f0\u4e00\u81f4\u3002\u5f53\u7136\u5b83\u4eec\u4e0d\u662f\u4e0d\u540c\u7684\u6587\u4ef6\uff0c\u5b83\u4eec\u662f\u540c\u4e00\u6587\u4ef6\u7684\u4e24\u4e2a\u94fe\u63a5\uff0c\u6307\u5411\u4e86\u540c\u4e00\u6587\u4ef6\u7684\u76ee\u5f55\u9879\u3002\u4e3a\u4e86\u5e2e\u52a9\u8bf4\u660e\u4e0b\u4e00\u70b9\uff0c\u5728 temp \u76ee\u5f55\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u975e\u94fe\u63a5\u6587\u4ef6\u3002<\/p>\n

[dboth@david temp]$ touch unlinked.file ; ls -l\r\ntotal 12\r\n-rw-rw-r-- 4 dboth dboth 7 Jun 13 07:34 link1.file.txt\r\n-rw-rw-r-- 4 dboth dboth 7 Jun 13 07:34 link2.file.txt\r\n-rw-rw-r-- 4 dboth dboth 7 Jun 13 07:34 main.file.txt\r\n-rw-rw-r-- 1 dboth dboth 0 Jun 14 08:18 unlinked.file\r\n<\/pre>\n

\u4f7f\u7528 ls \u547d\u4ee4\u7684 i \u9009\u9879\u67e5\u770b inode \u7684\u786c\u94fe\u63a5\u53f7\u548c\u65b0\u521b\u5efa\u6587\u4ef6\u7684\u786c\u94fe\u63a5\u53f7\u3002<\/p>\n

[dboth@david temp]$ ls -li\r\ntotal 12\r\n657024 -rw-rw-r-- 4 dboth dboth 7 Jun 13 07:34 link1.file.txt\r\n657024 -rw-rw-r-- 4 dboth dboth 7 Jun 13 07:34 link2.file.txt\r\n657024 -rw-rw-r-- 4 dboth dboth 7 Jun 13 07:34 main.file.txt\r\n657863 -rw-rw-r-- 1 dboth dboth 0 Jun 14 08:18 unlinked.file\r\n<\/pre>\n

\u6ce8\u610f\u4e0a\u9762\u6587\u4ef6\u6a21\u5f0f\u5de6\u8fb9\u7684\u6570\u5b57 657024 \uff0c\u8fd9\u662f\u4e09\u4e2a\u786c\u94fe\u63a5\u6587\u4ef6\u6240\u6307\u7684\u540c\u4e00\u6587\u4ef6\u7684 inode \u53f7\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528 i \u9009\u9879\u67e5\u770b\u4e3b\u76ee\u5f55\u4e2d\u6240\u521b\u5efa\u7684\u94fe\u63a5\u7684\u8282\u70b9\u53f7\uff0c\u548c\u8be5\u503c\u76f8\u540c\u3002\u800c\u90a3\u4e2a\u53ea\u6709\u4e00\u4e2a\u94fe\u63a5\u7684 inode \u53f7\u548c\u5176\u4ed6\u7684\u4e0d\u540c\uff0c\u5728\u4f60\u7684\u7cfb\u7edf\u4e0a\u770b\u5230\u7684 inode \u53f7\u6216\u8bb8\u4e0d\u540c\u4e8e\u672c\u6587\u4e2d\u7684\u3002<\/p>\n

\u63a5\u7740\u6539\u53d8\u5176\u4e2d\u4e00\u4e2a\u786c\u94fe\u63a5\u6587\u4ef6\u7684\u5927\u5c0f\u3002<\/p>\n

[dboth@david temp]$ df -h > link2.file.txt ; ls -li\r\ntotal 12\r\n657024 -rw-rw-r-- 4 dboth dboth 1157 Jun 14 14:14 link1.file.txt\r\n657024 -rw-rw-r-- 4 dboth dboth 1157 Jun 14 14:14 link2.file.txt\r\n657024 -rw-rw-r-- 4 dboth dboth 1157 Jun 14 14:14 main.file.txt\r\n657863 -rw-rw-r-- 1 dboth dboth 0 Jun 14 08:18 unlinked.file\r\n<\/pre>\n

\u73b0\u5728\u6240\u6709\u7684\u786c\u94fe\u63a5\u6587\u4ef6\u5927\u5c0f\u90fd\u6bd4\u539f\u6765\u5927\u4e86\uff0c\u56e0\u4e3a\u591a\u4e2a\u76ee\u5f55\u9879\u90fd\u94fe\u63a5\u7740\u540c\u4e00\u6587\u4ef6\u3002<\/p>\n

\u4e0b\u4e2a\u5b9e\u9a8c\u5728\u6211\u7684\u7535\u8111\u4e0a\u4f1a\u51fa\u73b0\u8fd9\u6837\u7684\u7ed3\u679c\uff0c\u662f\u56e0\u4e3a\u6211\u7684 \/tmp \u76ee\u5f55\u5728\u4e00\u4e2a\u72ec\u7acb\u7684\u903b\u8f91\u5377\u4e0a\u3002\u5982\u679c\u4f60\u6709\u5355\u72ec\u7684\u903b\u8f91\u5377\u6216\u6587\u4ef6\u7cfb\u7edf\u5728\u4e0d\u540c\u7684\u5206\u533a\u4e0a\uff08\u5982\u679c\u672a\u4f7f\u7528\u903b\u8f91\u5377\uff09\uff0c\u786e\u5b9a\u4f60\u662f\u5426\u80fd\u8bbf\u95ee\u90a3\u4e2a\u5206\u533a\u6216\u903b\u8f91\u5377\uff0c\u5982\u679c\u4e0d\u80fd\uff0c\u4f60\u53ef\u4ee5\u5728\u7535\u8111\u4e0a\u6302\u8f7d\u4e00\u4e2a U \u76d8\uff0c\u5982\u679c\u4e0a\u8ff0\u65b9\u5f0f\u9002\u5408\u4f60\uff0c\u4f60\u53ef\u4ee5\u8fdb\u884c\u8fd9\u4e2a\u5b9e\u9a8c\u3002<\/p>\n

\u8bd5\u7740\u5728 \/tmp \u76ee\u5f55\u4e2d\u5efa\u7acb\u4e00\u4e2a ~\/temp \u76ee\u5f55\u4e0b\u6587\u4ef6\u7684\u94fe\u63a5\uff08\u6216\u4f60\u7684\u6587\u4ef6\u7cfb\u7edf\u6240\u5728\u7684\u4f4d\u7f6e\uff09\u3002<\/p>\n

[dboth@david temp]$ ln link2.file.txt \/tmp\/link3.file.txt\r\nln: failed to create hard link '\/tmp\/link3.file.txt' => 'link2.file.txt':\r\nInvalid cross-device link\r\n<\/pre>\n

\u4e3a\u4ec0\u4e48\u4f1a\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\u5462\uff1f \u539f\u56e0\u662f\u6bcf\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\u90fd\u6709\u4e00\u5957\u81ea\u5df1\u7684 inode \u53f7\u3002\u7b80\u5355\u7684\u901a\u8fc7 inode \u53f7\u6765\u8de8\u8d8a\u6574\u4e2a Linux \u6587\u4ef6\u7cfb\u7edf\u7ed3\u6784\u5f15\u7528\u4e00\u4e2a\u6587\u4ef6\u4f1a\u4f7f\u7cfb\u7edf\u56f0\u60d1\uff0c\u56e0\u4e3a\u76f8\u540c\u7684\u8282\u70b9\u53f7\u4f1a\u5b58\u5728\u4e8e\u6bcf\u4e2a\u5df2\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u4e2d\u3002<\/p>\n

\u6709\u65f6\u4f60\u53ef\u80fd\u4f1a\u60f3\u627e\u5230\u4e00\u4e2a inode \u7684\u6240\u6709\u786c\u94fe\u63a5\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 ls -li \u547d\u4ee4\u3002\u7136\u540e\u4f7f\u7528 find \u547d\u4ee4\u627e\u5230\u6240\u6709\u786c\u94fe\u63a5\u7684\u8282\u70b9\u53f7\u3002<\/p>\n

[dboth@david temp]$ find . -inum 657024\r\n.\/main.file.txt\r\n.\/link1.file.txt\r\n.\/link2.file.txt\r\n<\/pre>\n

\u6ce8\u610f find \u547d\u4ee4\u4e0d\u80fd\u627e\u5230\u6240\u5c5e\u8be5\u8282\u70b9\u7684\u56db\u4e2a\u786c\u94fe\u63a5\uff0c\u56e0\u4e3a\u6211\u4eec\u5728 ~\/temp \u76ee\u5f55\u4e2d\u67e5\u627e\u3002 find \u547d\u4ee4\u4ec5\u5728\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u53ca\u5176\u5b50\u76ee\u5f55\u4e2d\u67e5\u627e\u6587\u4ef6\u3002\u8981\u627e\u5230\u6240\u6709\u7684\u786c\u94fe\u63a5\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e0b\u5217\u547d\u4ee4\uff0c\u6307\u5b9a\u4f60\u7684\u4e3b\u76ee\u5f55\u4f5c\u4e3a\u8d77\u59cb\u67e5\u627e\u6761\u4ef6\u3002<\/p>\n

[dboth@david temp]$ find ~ -samefile main.file.txt\r\n\/home\/dboth\/temp\/main.file.txt\r\n\/home\/dboth\/temp\/link1.file.txt\r\n\/home\/dboth\/temp\/link2.file.txt\r\n\/home\/dboth\/main.file.txt\r\n<\/pre>\n

\u5982\u679c\u4f60\u662f\u975e\u8d85\u7ea7\u7528\u6237\uff0c\u6ca1\u6709\u6743\u9650\uff0c\u53ef\u80fd\u4f1a\u770b\u5230\u9519\u8bef\u4fe1\u606f\u3002\u8fd9\u4e2a\u547d\u4ee4\u4e5f\u4f7f\u7528\u4e86 -samefile \u9009\u9879\u800c\u4e0d\u662f\u6307\u5b9a\u6587\u4ef6\u7684\u8282\u70b9\u53f7\u3002\u8fd9\u4e2a\u6548\u679c\u548c\u4f7f\u7528 inode \u53f7\u4e00\u6837\u4e14\u66f4\u5bb9\u6613\uff0c\u5982\u679c\u4f60\u77e5\u9053\u5176\u4e2d\u4e00\u4e2a\u786c\u94fe\u63a5\u540d\u79f0\u7684\u8bdd\u3002<\/p>\n

\u5bf9\u8f6f\u94fe\u63a5\u8fdb\u884c\u5b9e\u9a8c<\/strong><\/div>\n

\u5982\u4f60\u521a\u624d\u770b\u5230\u7684\uff0c\u4e0d\u80fd\u8de8\u8d8a\u6587\u4ef6\u7cfb\u7edf\u8fb9\u754c\u521b\u5efa\u786c\u94fe\u63a5\uff0c\u5373\u5728\u903b\u8f91\u5377\u6216\u6587\u4ef6\u7cfb\u7edf\u4e2d\u4ece\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\u5230\u53e6\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\u3002\u8f6f\u94fe\u63a5\u7ed9\u51fa\u4e86\u8fd9\u4e2a\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6848\u3002\u867d\u7136\u5b83\u4eec\u53ef\u4ee5\u8fbe\u5230\u76f8\u540c\u7684\u76ee\u7684\uff0c\u4f46\u5b83\u4eec\u662f\u975e\u5e38\u4e0d\u540c\u7684\uff0c\u77e5\u9053\u8fd9\u4e9b\u5dee\u5f02\u662f\u5f88\u91cd\u8981\u7684\u3002<\/p>\n

\u8ba9\u6211\u4eec\u5728 ~\/temp \u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u7b26\u53f7\u94fe\u63a5\u6765\u5f00\u59cb\u6211\u4eec\u7684\u63a2\u7d22\u3002<\/p>\n

[dboth@david temp]$ ln -s link2.file.txt link3.file.txt ; ls -li\r\ntotal 12\r\n657024 -rw-rw-r-- 4 dboth dboth 1157 Jun 14 14:14 link1.file.txt\r\n657024 -rw-rw-r-- 4 dboth dboth 1157 Jun 14 14:14 link2.file.txt\r\n658270 lrwxrwxrwx 1 dboth dboth 14 Jun 14 15:21 link3.file.txt ->\r\nlink2.file.txt\r\n657024 -rw-rw-r-- 4 dboth dboth 1157 Jun 14 14:14 main.file.txt\r\n657863 -rw-rw-r-- 1 dboth dboth 0 Jun 14 08:18 unlinked.file\r\n<\/pre>\n

\u62e5\u6709\u8282\u70b9\u53f7 657024 \u7684\u90a3\u4e9b\u786c\u94fe\u63a5\u6ca1\u6709\u53d8\u5316\uff0c\u4e14\u786c\u94fe\u63a5\u7684\u6570\u76ee\u4e5f\u6ca1\u6709\u53d8\u5316\u3002\u65b0\u521b\u5efa\u7684\u7b26\u53f7\u94fe\u63a5\u6709\u4e0d\u540c\u7684 inode \u53f7 658270\u3002 \u540d\u4e3a link3.file.txt \u7684\u8f6f\u94fe\u63a5\u6307\u5411\u4e86 link2.file.txt \u6587\u4ef6\u3002\u4f7f\u7528 cat \u547d\u4ee4\u67e5\u770b link3.file.txt \u6587\u4ef6\u7684\u5185\u5bb9\u3002\u7b26\u53f7\u94fe\u63a5\u7684 inode \u4fe1\u606f\u4ee5\u5b57\u6bcd l \uff08\u5c0f\u5199\u5b57\u6bcd l\uff09\u5f00\u5934\uff0c\u610f\u5473\u7740\u8fd9\u4e2a\u6587\u4ef6\u5b9e\u9645\u662f\u4e2a\u7b26\u53f7\u94fe\u63a5\u3002<\/p>\n

\u4e0a\u4f8b\u4e2d\u8f6f\u94fe\u63a5\u6587\u4ef6 link3.file.txt \u7684\u5927\u5c0f\u53ea\u6709 14 \u5b57\u8282\u3002\u8fd9\u662f\u6587\u672c\u5185\u5bb9 link3.file.txt \u7684\u5927\u5c0f\uff0c\u5373\u8be5\u76ee\u5f55\u9879\u7684\u5b9e\u9645\u5185\u5bb9\u3002\u76ee\u5f55\u9879 link3.file.txt \u5e76\u4e0d\u6307\u5411\u4e00\u4e2a inode \uff1b\u5b83\u6307\u5411\u4e86\u53e6\u4e00\u4e2a\u76ee\u5f55\u9879\uff0c\u8fd9\u5728\u8de8\u8d8a\u6587\u4ef6\u7cfb\u7edf\u5efa\u7acb\u94fe\u63a5\u65f6\u5f88\u6709\u5e2e\u52a9\u3002\u73b0\u5728\u8bd5\u7740\u521b\u5efa\u4e00\u4e2a\u8f6f\u94fe\u63a5\uff0c\u4e4b\u524d\u5728 \/tmp \u76ee\u5f55\u4e2d\u5c1d\u8bd5\u8fc7\u7684\u3002<\/p>\n

[dboth@david temp]$ ln -s \/home\/dboth\/temp\/link2.file.txt\r\n\/tmp\/link3.file.txt ; ls -l \/tmp\/link*\r\nlrwxrwxrwx 1 dboth dboth 31 Jun 14 21:53 \/tmp\/link3.file.txt ->\r\n\/home\/dboth\/temp\/link2.file.txt\r\n<\/pre>\n
\u5220\u9664\u94fe\u63a5<\/strong><\/div>\n

\u5f53\u4f60\u5220\u9664\u786c\u94fe\u63a5\u6216\u786c\u94fe\u63a5\u6240\u6307\u7684\u6587\u4ef6\u65f6\uff0c\u9700\u8981\u8003\u8651\u4e00\u4e9b\u95ee\u9898\u3002<\/p>\n

\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u5220\u9664\u786c\u94fe\u63a5\u6587\u4ef6 main.file.txt\u3002\u6ce8\u610f\u6307\u5411 inode \u7684\u6bcf\u4e2a\u76ee\u5f55\u9879\u5c31\u662f\u4e00\u4e2a\u786c\u94fe\u63a5\u3002<\/p>\n

[dboth@david temp]$ rm main.file.txt ; ls -li\r\ntotal 8\r\n657024 -rw-rw-r-- 3 dboth dboth 1157 Jun 14 14:14 link1.file.txt\r\n657024 -rw-rw-r-- 3 dboth dboth 1157 Jun 14 14:14 link2.file.txt\r\n658270 lrwxrwxrwx 1 dboth dboth 14 Jun 14 15:21 link3.file.txt ->\r\nlink2.file.txt\r\n657863 -rw-rw-r-- 1 dboth dboth 0 Jun 14 08:18 unlinked.file\r\n<\/pre>\n

main.file.txt \u662f\u8be5\u6587\u4ef6\u88ab\u521b\u5efa\u65f6\u6240\u521b\u5efa\u7684\u7b2c\u4e00\u4e2a\u786c\u94fe\u63a5\u3002\u73b0\u5728\u5220\u9664\u5b83\uff0c\u4ecd\u7136\u4fdd\u7559\u7740\u539f\u59cb\u6587\u4ef6\u548c\u786c\u76d8\u4e0a\u7684\u6570\u636e\u4ee5\u53ca\u6240\u6709\u5269\u4f59\u7684\u786c\u94fe\u63a5\u3002\u8981\u5220\u9664\u539f\u59cb\u6587\u4ef6\uff0c\u4f60\u5fc5\u987b\u5220\u9664\u5b83\u7684\u6240\u6709\u786c\u94fe\u63a5\u3002<\/p>\n

\u73b0\u5728\u5220\u9664 link2.file.txt \u786c\u94fe\u63a5\u6587\u4ef6\u3002<\/p>\n

[dboth@david temp]$ rm link2.file.txt ; ls -li\r\ntotal 8\r\n657024 -rw-rw-r-- 3 dboth dboth 1157 Jun 14 14:14 link1.file.txt\r\n658270 lrwxrwxrwx 1 dboth dboth 14 Jun 14 15:21 link3.file.txt ->\r\nlink2.file.txt\r\n657024 -rw-rw-r-- 3 dboth dboth 1157 Jun 14 14:14 main.file.txt\r\n657863 -rw-rw-r-- 1 dboth dboth 0 Jun 14 08:18 unlinked.file\r\n<\/pre>\n

\u6ce8\u610f\u8f6f\u94fe\u63a5\u7684\u53d8\u5316\u3002\u5220\u9664\u8f6f\u94fe\u63a5\u6240\u6307\u7684\u786c\u94fe\u63a5\u4f1a\u4f7f\u8be5\u8f6f\u94fe\u63a5\u5931\u6548\u3002\u5728\u6211\u7684\u7cfb\u7edf\u4e2d\uff0c\u65ad\u5f00\u7684\u94fe\u63a5\u7528\u989c\u8272\u9ad8\u4eae\u663e\u793a\uff0c\u76ee\u6807\u7684\u786c\u94fe\u63a5\u4f1a\u95ea\u70c1\u663e\u793a\u3002\u5982\u679c\u9700\u8981\u4fee\u590d\u8fd9\u4e2a\u635f\u574f\u7684\u8f6f\u94fe\u63a5\uff0c\u4f60\u9700\u8981\u5728\u540c\u4e00\u76ee\u5f55\u4e0b\u5efa\u7acb\u4e00\u4e2a\u548c\u65e7\u94fe\u63a5\u76f8\u540c\u540d\u5b57\u7684\u786c\u94fe\u63a5\uff0c\u53ea\u8981\u4e0d\u662f\u6240\u6709\u786c\u94fe\u63a5\u90fd\u5df2\u5220\u9664\u5c31\u884c\u3002\u60a8\u8fd8\u53ef\u4ee5\u91cd\u65b0\u521b\u5efa\u94fe\u63a5\u672c\u8eab\uff0c\u94fe\u63a5\u4fdd\u6301\u76f8\u540c\u7684\u540d\u79f0\uff0c\u4f46\u6307\u5411\u5269\u4f59\u7684\u786c\u94fe\u63a5\u4e2d\u7684\u4e00\u4e2a\u3002\u5f53\u7136\u5982\u679c\u8f6f\u94fe\u63a5\u4e0d\u518d\u9700\u8981\uff0c\u53ef\u4ee5\u4f7f\u7528 rm \u547d\u4ee4\u5220\u9664\u5b83\u4eec\u3002<\/p>\n

unlink \u547d\u4ee4\u5728\u5220\u9664\u6587\u4ef6\u548c\u94fe\u63a5\u65f6\u4e5f\u6709\u7528\u3002\u5b83\u975e\u5e38\u7b80\u5355\u4e14\u6ca1\u6709\u9009\u9879\uff0c\u5c31\u50cf rm \u547d\u4ee4\u4e00\u6837\u3002\u7136\u800c\uff0c\u5b83\u66f4\u51c6\u786e\u5730\u53cd\u6620\u4e86\u5220\u9664\u7684\u57fa\u672c\u8fc7\u7a0b\uff0c\u56e0\u4e3a\u5b83\u5220\u9664\u4e86\u76ee\u5f55\u9879\u4e0e\u88ab\u5220\u9664\u6587\u4ef6\u7684\u94fe\u63a5\u3002<\/p>\n

\u5199\u5728\u6700\u540e<\/strong><\/div>\n

\u6211\u7528\u8fc7\u8fd9\u4e24\u79cd\u7c7b\u578b\u7684\u94fe\u63a5\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\u540e\uff0c\u6211\u5f00\u59cb\u4e86\u89e3\u5b83\u4eec\u7684\u80fd\u529b\u548c\u7279\u8d28\u3002\u6211\u4e3a\u6211\u6240\u6559\u7684 Linux \u8bfe\u7a0b\u7f16\u5199\u4e86\u4e00\u4e2a\u5b9e\u9a8c\u5ba4\u9879\u76ee\uff0c\u4ee5\u5145\u5206\u7406\u89e3\u94fe\u63a5\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff0c\u5e76\u4e14\u6211\u5e0c\u671b\u589e\u8fdb\u4f60\u7684\u7406\u89e3\u3002<\/p>\n

\uff08\u9898\u56fe\uff1a Paul Lewin\uff0cOpensource.com \u4fee\u6539\u3002 CC BY-SA 2.0\uff09<\/p>\n

\u4f5c\u8005\u7b80\u4ecb\uff1a<\/p>\n

\u6234\u7ef4.\u5e03\u65af - \u6234\u7ef4.\u5e03\u65af\u662f Linux \u548c\u5f00\u6e90\u5021\u5bfc\u8005\uff0c\u5c45\u4f4f\u5728\u5317\u5361\u7f57\u83b1\u7eb3\u7684\u7f57\u5217 \u3002\u4ed6\u5728 IT \u884c\u4e1a\u5de5\u4f5c\u4e86\u56db\u5341\u5e74\uff0c\u4e3a IBM \u5de5\u4f5c\u4e86 20 \u591a\u5e74\u7684 OS\/2\u3002\u5728 IBM \u65f6\uff0c\u4ed6\u5728 1981 \u5e74\u7f16\u5199\u4e86\u6700\u521d\u7684 IBM PC \u7684\u7b2c\u4e00\u4e2a\u57f9\u8bad\u8bfe\u7a0b\u3002\u4ed6\u4e3a RedHat \u6559\u6388\u8fc7 RHCE \u73ed\uff0c\u5e76\u66fe\u5728 MCI Worldcom\u3001\u601d\u79d1\u548c\u5317\u5361\u7f57\u83b1\u7eb3\u5dde\u5de5\u4f5c\u3002\u4ed6\u5df2\u7ecf\u7528 Linux \u548c\u5f00\u6e90\u8f6f\u4ef6\u5de5\u4f5c\u5c06\u8fd1 20 \u5e74\u4e86\u3002<\/p>\n

 <\/p>\n

via: https:\/\/opensource.com\/article\/17\/6\/linking-linux-filesystem<\/a><\/p>\n

\u4f5c\u8005\uff1aDavid Both<\/a> \u8bd1\u8005\uff1ayongshouzhang<\/a> \u6821\u5bf9\uff1awxy<\/a><\/p>\n

\u672c\u6587\u7531 LCTT<\/a> \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a> \u8363\u8a89\u63a8\u51fa<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-9105-1.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/linux-users-guidance.html<\/a>\u7f16\u8f91\uff1a\u51af\u745e\u6d9b\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u5728\u6211\u4e3a opensource.com \u5199\u8fc7\u7684\u5173\u4e8e Linux \u6587\u4ef6\u7cfb\u7edf\u65b9\u65b9\u9762\u9762\u7684\u6587\u7ae0\u4e2d\uff0c\u5305\u62ec Linux […]<\/p>\n","protected":false},"author":1329,"featured_media":89552,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-89549","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\/89549","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\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=89549"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/89549\/revisions"}],"predecessor-version":[{"id":89572,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/89549\/revisions\/89572"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/89552"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=89549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=89549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=89549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}