{"id":3286,"date":"2019-06-19T23:51:21","date_gmt":"2019-06-19T15:51:21","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3286"},"modified":"2019-06-19T23:52:09","modified_gmt":"2019-06-19T15:52:09","slug":"pushed","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/pushed","title":{"rendered":"pushed\u547d\u4ee4 – \u5411shell\u76ee\u5f55\u5806\u6808\u4e2d\u6dfb\u52a0\u8bb0\u5f55"},"content":{"rendered":"\n
pushed\u547d\u4ee4\u7528\u4e8e\u5c06\u76ee\u5f55\u52a0\u5165\u5806\u6808\u4e2d\uff0c\u52a0\u5165\u8bb0\u5f55\u5230\u76ee\u5f55\u6808\u9876\u90e8\uff0c\u5e76\u5207\u6362\u5230\u8be5\u76ee\u5f55\uff0c\u5982\u679c\u4e0d\u52a0\u4efb\u4f55\u53c2\u6570\uff0c \u5219\u4f1a\u5c06\u4f4d\u4e8e\u8bb0\u5f55\u6808\u6700\u4e0a\u9762\u7684\u4e24\u4e2a\u76ee\u5f55\u5bf9\u6362\u4f4d\u7f6e\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>pushed [\u53c2\u6570] [\u76ee\u5f55] <\/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 \u663e\u793aShell\u9ed8\u8ba4\u7684\u76ee\u5f55\u5806\u6808\uff1a<\/p>\n\n\n\n \u5411Shell\u76ee\u5f55\u5806\u6808\u4e2d\u6dfb\u52a0\u76ee\u5f55\/etc\uff1a<\/p>\n\n\n\n \u663e\u793aShell\u76ee\u5f55\u5806\u6808\u5185\u5bb9\uff0c\u6bcf\u884c\u4e00\u4e2a\u8bb0\u5f55\uff0c\u5e76\u52a0\u5e8f\u53f7\uff1a<\/p>\n\n\n\n \u5c06\u7b2c\u4e00\u4e2a\u8bb0\u5f55\u79fb\u5230\u5806\u6808\u9876\uff1a<\/p>\n\n\n\n pushed\u547d\u4ee4\u7528\u4e8e\u5c06\u76ee\u5f55\u52a0\u5165\u5806\u6808\u4e2d\uff0c\u52a0\u5165\u8bb0\u5f55\u5230\u76ee\u5f55\u6808\u9876\u90e8\uff0c\u5e76\u5207\u6362\u5230\u8be5\u76ee\u5f55\uff0c\u5982\u679c\u4e0d\u52a0\u4efb\u4f55\u53c2\u6570\uff0c \u5219\u4f1a\u5c06\u4f4d\u4e8e\u8bb0\u5f55 […]<\/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\/3286"}],"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=3286"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3286\/revisions"}],"predecessor-version":[{"id":3326,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3286\/revisions\/3326"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-n <\/td> \u5c06\u53f3\u8d77\u7b2cn\u4e2a\u76ee\u5f55\u79fb\u5230\u5806\u6808\u9876\uff08n\u4ece0\u5f00\u59cb\u8ba1\u6570\uff09 <\/td><\/tr> +n <\/td> \u5c06\u5de6\u8d77\u7b2cn\u4e2a\u76ee\u5f55\u79fb\u5230\u5806\u6808\u9876\uff08n\u4ece0\u5f00\u59cb\u8ba1\u6570\uff09 <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# dirs\n\/var\/log<\/pre>\n\n\n\n
[root@linuxcool ~]# pushed \/etc<\/pre>\n\n\n\n
[root@linuxcool ~]# dirs -v\n0 \/sbin\n1 \/etc\n2 \/var\/log<\/pre>\n\n\n\n
[root@linuxcool ~]# pushed -1\n\/etc \/var\/log \/sbin<\/pre>\n","protected":false},"excerpt":{"rendered":"