{"id":5944,"date":"2019-12-16T16:12:09","date_gmt":"2019-12-16T08:12:09","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5944"},"modified":"2019-12-27T16:18:31","modified_gmt":"2019-12-27T08:18:31","slug":"pushd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/pushd","title":{"rendered":"pushd\u547d\u4ee4 – \u6dfb\u52a0\u76ee\u5f55\u5230\u76ee\u5f55\u5806\u6808\u9876\u90e8"},"content":{"rendered":"\n

pushd\u547d\u4ee4\u7528\u4e8e\u66f4\u6539\u65b0\u76ee\u5f55\u5e76\uff08\u6216\uff09\u538b\u6808\uff0c\u6216\u8005\u628a\u6808\u91cc\u7684\u67d0\u4e2a\u76ee\u5f55\u63a8\u5230\u6808\u9876\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:<\/strong> pushd [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570:<\/strong><\/p>\n\n\n\n

+N <\/td>\u628a\u6b63\u6570\u7b2cN\u4e2a\u653e\u5230\u6808\u9876<\/td><\/tr>
-N <\/td>\u628a\u5012\u6570\u7b2cN\u4e2a\u653e\u5230\u6808\u9876<\/td><\/tr>
-n<\/td>\u4e0d\u5207\u6362\uff0c\u53ea\u538b\u6808<\/td><\/tr>
dir <\/td>\u8981\u63a8\u9001\u7684\u76ee\u5f55<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u6dfb\u52a0\u76ee\u5f55\u5230\u5806\u6808\uff0c\u6539\u53d8\u4e86\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55:<\/p>\n\n\n\n

[root@linuxcool ~]# dirs\n~\n[root@linuxcool ~]# pushd ~\/Desktop\n~\/Desktop ~ <\/pre>\n\n\n\n

\u6dfb\u52a0\u76ee\u5f55\u5230\u5806\u6808\uff0c\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u4e0d\u53d8: <\/p>\n\n\n\n

[root@linuxcool ~]# dirs\n~\n[root@linuxcool ~]# pushd -n ~\/Desktop\n~ ~\/Desktop\n[root@linuxcool ~]# pushd -n ~\/Pictures\n~ ~\/Pictures ~\/Desktop<\/pre>\n\n\n\n

\u8c03\u6574\u987a\u5e8f: <\/p>\n\n\n\n

[root@linuxcool ~]# pushd +1\n~\/Pictures ~\/Desktop ~\n[root@linuxcool ~]# pushd -1\n~\/Desktop ~ ~\/Pictures\n[root@linuxcool ~]# pushd\n~ ~\/Desktop ~\/Pictures<\/pre>\n","protected":false},"excerpt":{"rendered":"

pushd\u547d\u4ee4\u7528\u4e8e\u66f4\u6539\u65b0\u76ee\u5f55\u5e76\uff08\u6216\uff09\u538b\u6808\uff0c\u6216\u8005\u628a\u6808\u91cc\u7684\u67d0\u4e2a\u76ee\u5f55\u63a8\u5230\u6808\u9876\u3002 \u8bed\u6cd5\u683c\u5f0f: pushd [\u53c2\u6570] \u5e38 […]<\/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\/5944"}],"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=5944"}],"version-history":[{"count":13,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5944\/revisions"}],"predecessor-version":[{"id":6173,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5944\/revisions\/6173"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}