{"id":293,"date":"2019-04-01T13:15:19","date_gmt":"2019-04-01T05:15:19","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=293"},"modified":"2022-05-02T20:05:12","modified_gmt":"2022-05-02T12:05:12","slug":"mv","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/mv","title":{"rendered":"mv\u547d\u4ee4 – \u79fb\u52a8\u6216\u6539\u540d\u6587\u4ef6"},"content":{"rendered":"\n
mv\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u5355\u8bcdmove\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u4e0e\u82f1\u6587\u542b\u4e49\u76f8\u540c\uff0c\u7528\u4e8e\u5bf9\u6587\u4ef6\u8fdb\u884c\u526a\u5207\u548c\u91cd\u547d\u540d\u3002<\/p>\n\n\n\n
\u8fd9\u662f\u4e00\u4e2a\u9ad8\u9891\u4f7f\u7528\u7684\u6587\u4ef6\u7ba1\u7406\u547d\u4ee4\uff0c\u6211\u4eec\u9700\u8981\u7559\u610f\u5b83\u4e0e\u590d\u5236\u547d\u4ee4\u7684\u533a\u522b\u3002cp\u547d\u4ee4\u662f\u7528\u4e8e\u6587\u4ef6\u7684\u590d\u5236\u64cd\u4f5c\uff0c\u6587\u4ef6\u4e2a\u6570\u662f\u589e\u52a0\u7684\uff0c\u800cmv\u5219\u4e3a\u526a\u5207\u64cd\u4f5c\uff0c\u4e5f\u5c31\u662f\u5bf9\u6587\u4ef6\u8fdb\u884c\u79fb\u52a8\uff08\u642c\u5bb6\uff09\u64cd\u4f5c\uff0c\u6587\u4ef6\u4f4d\u7f6e\u53d1\u751f\u53d8\u5316\uff0c\u4f46\u603b\u4e2a\u6570\u5e76\u65e0\u589e\u52a0\u3002<\/p>\n\n\n\n
\u5728\u540c\u4e00\u4e2a\u76ee\u5f55\u5185\u5bf9\u6587\u4ef6\u8fdb\u884c\u526a\u5207\u7684\u64cd\u4f5c\uff0c\u5b9e\u9645\u5e94\u7406\u89e3\u6210\u91cd\u547d\u540d\u64cd\u4f5c\uff0c\u4f8b\u5982\u4e0b\u9762\u7684\u5b9e\u4f8b\u4e00\u6240\u793a\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>mv [\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 \u5728\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u4e2d\uff0c\u5bf9\u67d0\u4e2a\u6587\u4ef6\u8fdb\u884c\u526a\u5207\u540e\u7c98\u8d34\uff08\u91cd\u547d\u540d\uff09\u64cd\u4f5c\uff1a<\/p>\n\n\n\n \u5c06\u67d0\u4e2a\u6587\u4ef6\u79fb\u52a8\u5230\/etc\u76ee\u5f55\u4e2d\uff0c\u4fdd\u7559\u6587\u4ef6\u539f\u59cb\u540d\u79f0\uff1a<\/p>\n\n\n\n \u5c06\u67d0\u4e2a\u76ee\u5f55\u79fb\u52a8\u5230\/etc\u76ee\u5f55\u4e2d\uff0c\u5e76\u5b9a\u4e49\u65b0\u7684\u76ee\u5f55\u540d\u79f0\uff1a<\/p>\n\n\n\n \u5c06\/home\u76ee\u5f55\u4e2d\u6240\u6709\u7684\u6587\u4ef6\u90fd\u79fb\u52a8\u5230\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u4e2d\uff0c\u9047\u5230\u5df2\u5b58\u5728\u6587\u4ef6\u5219\u76f4\u63a5\u8986\u76d6\uff1a<\/p>\n\n\n\n mv\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u5355\u8bcdmove\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u4e0e\u82f1\u6587\u542b\u4e49\u76f8\u540c\uff0c\u7528\u4e8e\u5bf9\u6587\u4ef6\u8fdb\u884c\u526a\u5207\u548c\u91cd\u547d\u540d\u3002 \u8fd9\u662f\u4e00\u4e2a\u9ad8\u9891\u4f7f\u7528\u7684\u6587 […]<\/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\/293"}],"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=293"}],"version-history":[{"count":20,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/293\/revisions"}],"predecessor-version":[{"id":9097,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/293\/revisions\/9097"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-i<\/td> \u82e5\u5b58\u5728\u540c\u540d\u6587\u4ef6\uff0c\u5219\u5411\u7528\u6237\u8be2\u95ee\u662f\u5426\u8986\u76d6<\/td><\/tr> -f<\/td> \u8986\u76d6\u5df2\u6709\u6587\u4ef6\u65f6\uff0c\u4e0d\u8fdb\u884c\u4efb\u4f55\u63d0\u793a<\/td><\/tr> -b<\/td> \u5f53\u6587\u4ef6\u5b58\u5728\u65f6\uff0c\u8986\u76d6\u524d\u4e3a\u5176\u521b\u5efa\u4e00\u4e2a\u5907\u4efd<\/td><\/tr> -u
<\/td>\u5f53\u6e90\u6587\u4ef6\u6bd4\u76ee\u6807\u6587\u4ef6\u65b0\uff0c\u6216\u8005\u76ee\u6807\u6587\u4ef6\u4e0d\u5b58\u5728\u65f6\uff0c\u624d\u6267\u884c\u79fb\u52a8\u6b64\u64cd\u4f5c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# mv anaconda-ks.cfg ks.cfg<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# mv ks.cfg \/etc<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# mv Documents \/etc\/docs<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# mv -f \/home\/* .<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"