{"id":308,"date":"2019-04-09T23:55:37","date_gmt":"2019-04-09T15:55:37","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=308"},"modified":"2022-05-10T16:12:18","modified_gmt":"2022-05-10T08:12:18","slug":"ln","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ln","title":{"rendered":"ln\u547d\u4ee4 – \u4e3a\u6587\u4ef6\u521b\u5efa\u5feb\u6377\u65b9\u5f0f"},"content":{"rendered":"\n
ln\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u5355\u8bcdlink\u7684\u7f29\u5199\uff0c\u4e2d\u6587\u8bd1\u4e3a\u201c\u94fe\u63a5\u201d\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u4e3a\u67d0\u4e2a\u6587\u4ef6\u5728\u53e6\u5916\u4e00\u4e2a\u4f4d\u7f6e\u5efa\u7acb\u540c\u6b65\u7684\u94fe\u63a5\u3002Linux\u7cfb\u7edf\u4e2d\u7684\u94fe\u63a5\u6587\u4ef6\u6709\u4e24\u79cd\u5f62\u5f0f\uff0c\u4e00\u79cd\u662f\u786c\u94fe\u63a5\uff08hard link\uff09\uff0c\u53e6\u4e00\u79cd\u662f\u8f6f\u94fe\u63a5\uff08symbolic link\uff09\u3002\u8f6f\u8fde\u63a5\u76f8\u5f53\u4e8eWindows\u7cfb\u7edf\u4e2d\u7684\u5feb\u6377\u65b9\u5f0f\u6587\u4ef6\uff0c\u539f\u59cb\u6587\u4ef6\u88ab\u79fb\u52a8\u6216\u5220\u9664\u540e\uff0c\u8f6f\u8fde\u63a5\u6587\u4ef6\u4e5f\u5c06\u65e0\u6cd5\u4f7f\u7528\uff0c\u800c\u786c\u94fe\u63a5\u5219\u662f\u901a\u8fc7\u5c06\u6587\u4ef6\u7684inode\u5c5e\u6027\u5757\u8fdb\u884c\u4e86\u590d\u5236 \uff0c\u56e0\u6b64\u628a\u539f\u59cb\u6587\u4ef6\u79fb\u52a8\u6216\u5220\u9664\u540e\uff0c\u786c\u94fe\u63a5\u6587\u4ef6\u4f9d\u7136\u53ef\u4ee5\u4f7f\u7528\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a <\/strong>ln [\u53c2\u6570] \u6e90\u6587\u4ef6 \u76ee\u6807\u6587\u4ef6<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u4e3a\u6307\u5b9a\u7684\u6e90\u6587\u4ef6\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\uff08\u9ed8\u8ba4\u4e3a\u786c\u94fe\u63a5\u5f62\u5f0f\uff09\uff1a<\/p>\n\n\n\n \u4e3a\u6307\u5b9a\u7684\u6e90\u6587\u4ef6\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\uff08\u8bbe\u5b9a\u4e3a\u8f6f\u8fde\u63a5\u5f62\u5f0f\uff09\uff1a<\/p>\n\n\n\n \u5728\u6307\u5b9a\u7684\u6e90\u6587\u4ef6\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\uff0c\u5e76\u8f93\u51fa\u5236\u4f5c\u7684\u8fc7\u7a0b\u4fe1\u606f\uff1a<\/p>\n\n\n\n ln\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u5355\u8bcdlink\u7684\u7f29\u5199\uff0c\u4e2d\u6587\u8bd1\u4e3a\u201c\u94fe\u63a5\u201d\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u4e3a\u67d0\u4e2a\u6587\u4ef6\u5728\u53e6\u5916\u4e00\u4e2a\u4f4d\u7f6e\u5efa\u7acb\u540c\u6b65\u7684\u94fe\u63a5\u3002L […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/308"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=308"}],"version-history":[{"count":28,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/308\/revisions"}],"predecessor-version":[{"id":9461,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/308\/revisions\/9461"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} -b<\/td> \u4e3a\u6bcf\u4e2a\u5df2\u5b58\u5728\u7684\u76ee\u6807\u6587\u4ef6\u521b\u5efa\u5907\u4efd\u6587\u4ef6<\/td><\/tr> -d<\/td> \u6b64\u9009\u9879\u5141\u8bb8\u201croot\u201d\u7528\u6237\u5efa\u7acb\u76ee\u5f55\u7684\u786c\u94fe\u63a5<\/td><\/tr> -f<\/td> \u5f3a\u5236\u521b\u5efa\u94fe\u63a5\uff0c\u5373\u4f7f\u76ee\u6807\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728<\/td><\/tr> -n
<\/td>\u628a\u6307\u5411\u76ee\u5f55\u7684\u7b26\u53f7\u94fe\u63a5\u89c6\u4e3a\u4e00\u4e2a\u666e\u901a\u6587\u4ef6<\/td><\/tr> -i <\/td> \u4ea4\u4e92\u6a21\u5f0f\uff0c\u82e5\u76ee\u6807\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\uff0c\u5219\u63d0\u793a\u7528\u6237\u786e\u8ba4\u8fdb\u884c\u8986\u76d6<\/td><\/tr> -s<\/td> \u5bf9\u6e90\u6587\u4ef6\u5efa\u7acb\u7b26\u53f7\u94fe\u63a5\uff0c\u800c\u975e\u786c\u94fe\u63a5<\/td><\/tr> -v<\/td> \u8be6\u7ec6\u4fe1\u606f\u6a21\u5f0f\uff0c\u8f93\u51fa\u6307\u4ee4\u7684\u8be6\u7ec6\u6267\u884c\u8fc7\u7a0b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# ln anaconda-ks.cfg ana.cfg<\/strong>\r<\/pre>\n\n\n\n
[root@linuxcool ~]# ln -s initial-setup-ks.cfg ini.cfg<\/strong>\r<\/pre>\n\n\n\n
[root@linuxcool ~]# ln -v anaconda-ks.cfg ana.cfg<\/strong>\r\n'ana.cfg' => 'anaconda-ks.cfg'\r<\/pre>\n","protected":false},"excerpt":{"rendered":"