{"id":159534,"date":"2019-10-09T11:10:01","date_gmt":"2019-10-09T03:10:01","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=159534"},"modified":"2019-10-17T10:58:48","modified_gmt":"2019-10-17T02:58:48","slug":"unlink-linux-symlink","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/unlink-linux-symlink.html","title":{"rendered":"\u5927\u795e\u6559\u4f60\u5982\u4f55\u5728 Linux \u4e2d\u79fb\u9664\u7b26\u53f7\u94fe\u63a5"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u4f60\u53ef\u80fd\u6709\u65f6\u9700\u8981\u5728 Linux \u4e0a\u521b\u5efa\u6216\u8005\u5220\u9664\u7b26\u53f7\u94fe\u63a5\u3002\u5982\u679c\u6709\uff0c\u4f60\u77e5\u9053\u8be5\u600e\u6837\u505a\u5417\uff1f\u4e4b\u524d\u4f60\u505a\u8fc7\u5417\uff1f\u4f60\u8e29\u5751\u6ca1\u6709\uff1f\u5982\u679c\u4f60\u8e29\u8fc7\u5751\uff0c\u90a3\u6ca1\u4ec0\u4e48\u95ee\u9898\u3002\u5982\u679c\u8fd8\u6ca1\u6709\uff0c\u522b\u62c5\u5fc3\uff0c\u6211\u4eec\u5c06\u5728\u8fd9\u91cc\u5e2e\u52a9\u4f60\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u4f7f\u7528 rm \u548c unlink \u547d\u4ee4\u5c31\u80fd\u5b8c\u6210\u79fb\u9664\uff08\u5220\u9664\uff09\u7b26\u53f7\u94fe\u63a5\u7684\u64cd\u4f5c\u3002<\/p>\n \u4ec0\u4e48\u662f\u7b26\u53f7\u94fe\u63a5\uff1f<\/strong><\/div>\n \u7b26\u53f7\u94fe\u63a5\uff08symlink\uff09\u53c8\u79f0\u8f6f\u94fe\u63a5\uff0c\u5b83\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u6587\u4ef6\u7c7b\u578b\uff0c\u5728 Linux \u4e2d\u8be5\u6587\u4ef6\u6307\u5411\u53e6\u4e00\u4e2a\u6587\u4ef6\u6216\u8005\u76ee\u5f55\u3002\u5b83\u7c7b\u4f3c\u4e8e Windows \u4e2d\u7684\u5feb\u6377\u65b9\u5f0f\u3002\u5b83\u80fd\u5728\u76f8\u540c\u6216\u8005\u4e0d\u540c\u7684\u6587\u4ef6\u7cfb\u7edf\u6216\u5206\u533a\u4e2d\u6307\u5411\u4e00\u4e2a\u6587\u4ef6\u6216\u7740\u76ee\u5f55\u3002<\/p>\n \u7b26\u53f7\u94fe\u63a5\u901a\u5e38\u7528\u6765\u94fe\u63a5\u5e93\u6587\u4ef6\u3002\u5b83\u4e5f\u53ef\u7528\u4e8e\u94fe\u63a5\u65e5\u5fd7\u6587\u4ef6\u548c\u6302\u8f7d\u7684 NFS\uff08\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff09\u4e0a\u7684\u6587\u4ef6\u5939\u3002<\/p>\n \u4ec0\u4e48\u662f rm \u547d\u4ee4\uff1f<\/strong><\/div>\n rm \u547d\u4ee4 \u88ab\u7528\u6765\u79fb\u9664\u6587\u4ef6\u548c\u76ee\u5f55\u3002\u5b83\u975e\u5e38\u5371\u9669\uff0c\u4f60\u6bcf\u6b21\u4f7f\u7528 rm \u547d\u4ee4\u7684\u65f6\u5019\u8981\u975e\u5e38\u5c0f\u5fc3\u3002<\/p>\n \u4ec0\u4e48\u662f unlink \u547d\u4ee4\uff1f<\/strong><\/div>\n unlink \u547d\u4ee4\u88ab\u7528\u6765\u79fb\u9664\u7279\u6b8a\u7684\u6587\u4ef6\u3002\u5b83\u88ab\u4f5c\u4e3a GNU Gorutils \u7684\u4e00\u90e8\u5206\u5b89\u88c5\u4e86\u3002<\/p>\n \u4f7f\u7528 rm \u547d\u4ee4\u600e\u6837\u79fb\u9664\u7b26\u53f7\u94fe\u63a5\u6587\u4ef6<\/strong><\/div>\n rm \u547d\u4ee4\u662f\u5728 Linux \u4e2d\u4f7f\u7528\u6700\u9891\u7e41\u7684\u547d\u4ee4\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u50cf\u4e0b\u5217\u63cf\u8ff0\u90a3\u6837\u53bb\u79fb\u9664\u7b26\u53f7\u94fe\u63a5\u3002<\/p>\n # rm symlinkfile<\/pre>\n |