{"id":387,"date":"2019-04-15T00:18:13","date_gmt":"2019-04-14T16:18:13","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=387"},"modified":"2022-05-06T17:27:43","modified_gmt":"2022-05-06T09:27:43","slug":"cd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/cd","title":{"rendered":"cd\u547d\u4ee4 – \u5207\u6362\u76ee\u5f55"},"content":{"rendered":"\n
cd\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201dchange directory\u201c\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u66f4\u6539\u5f53\u524d\u6240\u5904\u7684\u5de5\u4f5c\u76ee\u5f55\uff0c\u8def\u5f84\u53ef\u4ee5\u662f\u7edd\u5bf9\u8def\u5f84\uff0c\u4e5f\u53ef\u4ee5\u662f\u76f8\u5bf9\u8def\u5f84\uff0c\u82e5\u7701\u7565\u4e0d\u5199\u5219\u4f1a\u8df3\u8f6c\u81f3\u5f53\u524d\u4f7f\u7528\u8005\u7684\u5bb6\u76ee\u5f55\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>cd [\u53c2\u6570] [\u76ee\u5f55\u540d] <\/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 \u5207\u6362\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u81f3\/etc\uff1a<\/p>\n\n\n\n \u5207\u6362\u81f3\u5f53\u524d\u7528\u6237\u7684\u5bb6\u76ee\u5f55\uff1a<\/p>\n\n\n\n \u8fdb\u5165\u5230\u4e0a\u4e00\u7ea7\u6240\u5728\u76ee\u5f55\uff08\u5bb6\u76ee\u5f55\u2192\u6839\u76ee\u5f55\uff09\uff1a<\/p>\n\n\n\n \u8fd4\u56de\u5230\u4e0a\u4e00\u6b21\u6240\u5728\u76ee\u5f55\uff08\u6839\u76ee\u5f55\u2192\u5bb6\u76ee\u5f55\uff09\uff1a<\/p>\n\n\n\n cd\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201dchange directory\u201c\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u66f4\u6539\u5f53\u524d\u6240\u5904\u7684\u5de5\u4f5c\u76ee\u5f55\uff0c\u8def\u5f84\u53ef\u4ee5 […]<\/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\/387"}],"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=387"}],"version-history":[{"count":26,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/387\/revisions"}],"predecessor-version":[{"id":9318,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/387\/revisions\/9318"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-P<\/td> \u5982\u679c\u5207\u6362\u7684\u76ee\u6807\u76ee\u5f55\u662f\u4e00\u4e2a\u7b26\u53f7\u94fe\u63a5\uff0c\u5219\u76f4\u63a5\u5207\u6362\u5230\u7b26\u53f7\u94fe\u63a5\u6307\u5411\u7684\u76ee\u6807\u76ee\u5f55<\/td><\/tr> -L<\/td> \u5982\u679c\u5207\u6362\u7684\u76ee\u6807\u76ee\u5f55\u662f\u4e00\u4e2a\u7b26\u53f7\u94fe\u63a5\uff0c\u5219\u76f4\u63a5\u5207\u6362\u5230\u7b26\u53f7\u94fe\u63a5\u540d\u6240\u5728\u7684\u76ee\u5f55<\/td><\/tr> --<\/td> \u4ec5\u4f7f\u7528”-“\u9009\u9879\u65f6\uff0c\u5f53\u524d\u76ee\u5f55\u5c06\u88ab\u5207\u6362\u5230\u73af\u5883\u53d8\u91cf”OLDPWD”\u5bf9\u5e94\u503c\u7684\u76ee\u5f55<\/td><\/tr> ~<\/td> \u5207\u6362\u81f3\u5f53\u524d\u7528\u6237\u76ee\u5f55<\/td><\/tr> ..<\/td> \u5207\u6362\u81f3\u5f53\u524d\u76ee\u5f55\u4f4d\u7f6e\u7684\u4e0a\u4e00\u7ea7\u76ee\u5f55<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# cd \/etc<\/strong>\n[root@linuxcool etc]#<\/pre>\n\n\n\n
[root@linuxcool etc]# cd ~<\/strong>\n[root@linuxcool ~]# \n<\/pre>\n\n\n\n
[root@linuxcool ~]# cd ..<\/strong>\n[root@linuxcool \/]# \n<\/pre>\n\n\n\n
[root@linuxcool \/]# cd -\n\/root\n[root@linuxcool ~]# <\/pre>\n","protected":false},"excerpt":{"rendered":"