{"id":3284,"date":"2019-06-19T23:52:31","date_gmt":"2019-06-19T15:52:31","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3284"},"modified":"2019-06-19T23:52:32","modified_gmt":"2019-06-19T15:52:32","slug":"popd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/popd","title":{"rendered":"popd\u547d\u4ee4 – \u4eceshell\u76ee\u5f55\u5806\u6808\u4e2d\u5220\u9664\u8bb0\u5f55"},"content":{"rendered":"\n

\u7528\u4e8e\u4eceShell\u76ee\u5f55\u5806\u6808\u4e2d\u5220\u9664\u8bb0\u5f55\uff0c\u5982\u679c\u4e0d\u52a0\u4efb\u4f55\u9009\u9879\uff0cpopd\u547d\u4ee4\u5148\u5220\u9664Shell\u76ee\u5f55\u5806\u6808\u6808\u9876\u7684\u8bb0\u5f55\uff0c\u518d\u628a\u5f53\u524d\u76ee\u5f55\u5207\u6362\u5230\u65b0\u7684Shell\u76ee\u5f55\u5806\u6808\u9876\u7684\u76ee\u5f55\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>popd [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-n<\/td>\u5c06\u53f3\u8d77\u7b2cn\u4e2a\u76ee\u5f55\u5220\u9664\uff08n\u4ece0\u5f00\u59cb\u8ba1\u6570\uff09<\/td><\/tr>
+n<\/td>\u5c06\u5de6\u8d77\u7b2cn\u4e2a\u76ee\u5f55\u5220\u9664\uff08n\u4ece0\u5f00\u59cb\u8ba1\u6570\uff09<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u663e\u793aShell\u76ee\u5f55\u5806\u6808\u5185\u5bb9\uff0c\u6bcf\u884c\u4e00\u4e2a\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dirs -v\n0 \/sbin\n1 \/etc\n2 \/var\/log<\/pre>\n\n\n\n

\u4eceshell\u76ee\u5f55\u5806\u6808\u4e2d\u5220\u9664\/sbin\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# popd\n\/etc \/var\/log<\/pre>\n\n\n\n

\u663e\u793a\u5f53\u524d\u7684\u5de5\u4f5c\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pwd\netc<\/pre>\n\n\n\n

\u4ece\u76ee\u5f55\u5806\u6808\u4e2d\u5220\u9664\u6808\u9876\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# popd\n\/var\/log<\/pre>\n\n\n\n

\u4ece\u76ee\u5f55\u5806\u6808\u4e2d\u5220\u9664\u4ece\u53f3\u8d77\u7b2c2\u4e2a\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# popd -2<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u7528\u4e8e\u4eceShell\u76ee\u5f55\u5806\u6808\u4e2d\u5220\u9664\u8bb0\u5f55\uff0c\u5982\u679c\u4e0d\u52a0\u4efb\u4f55\u9009\u9879\uff0cpopd\u547d\u4ee4\u5148\u5220\u9664Shell\u76ee\u5f55\u5806\u6808\u6808\u9876\u7684\u8bb0\u5f55\uff0c\u518d\u628a\u5f53\u524d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3284"}],"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=3284"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3284\/revisions"}],"predecessor-version":[{"id":3327,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3284\/revisions\/3327"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}