{"id":3412,"date":"2019-06-22T20:48:55","date_gmt":"2019-06-22T12:48:55","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3412"},"modified":"2020-05-01T00:18:19","modified_gmt":"2020-04-30T16:18:19","slug":"unalias","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/unalias","title":{"rendered":"unalias\u547d\u4ee4 – \u53d6\u6d88\u547d\u4ee4\u522b\u540d"},"content":{"rendered":"\n

unalias\u547d\u4ee4\u7528\u6765\u53d6\u6d88\u547d\u4ee4\u522b\u540d\uff0c\u662f\u4e3ashell\u5185\u5efa\u547d\u4ee4\u3002\u5982\u679c\u9700\u8981\u53d6\u6d88\u4efb\u610f\u4e00\u4e2a\u547d\u4ee4\u522b\u540d\uff0c\u5219\u4f7f\u7528\u8be5\u547d\u4ee4\u522b\u540d\u4f5c\u4e3a\u6307\u4ee4\u7684\u53c2\u6570\u9009\u9879\u5373\u53ef\u3002\u5982\u679c\u4f7f\u7528-a\u9009\u9879\uff0c\u5219\u8868\u793a\u53d6\u6d88\u6240\u6709\u5df2\u7ecf\u5b58\u5728\u7684\u547d\u4ee4\u522b\u540d\u3002<\/p>\n\n\n\n

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

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

-a<\/td>\u53d6\u6d88\u6240\u6709\u547d\u4ee4\u522b\u540d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u5148\u8bbe\u7f6e\u4e00\u4e2a\u522b\u540d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# alias i='ls'\n[root@linuxcool ~]# i\nIGI  Leader  NetEase<\/pre>\n\n\n\n

\u4f7f\u7528unalias\u547d\u4ee4\u5c06\u5df2\u7ecf\u8bbe\u7f6e\u7684\u547d\u4ee4\u522b\u540d”i”\u53d6\u6d88\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# unalias i<\/pre>\n\n\n\n

\u4e0a\u9762\u7684\u547d\u4ee4\u6267\u884c\u540e\uff0c\u7cfb\u7edf\u4f1a\u5c06\u6307\u5b9a\u7684\u547d\u4ee4\u522b\u540d\u53d6\u6d88\u6389\u3002\u5982\u679c\u518d\u4f7f\u7528\u8be5\u547d\u4ee4\u522b\u540d\u65f6\uff0c\u7cfb\u7edf\u5c06\u63d0\u793a\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# i\n-bash: i: command not found<\/pre>\n","protected":false},"excerpt":{"rendered":"

unalias\u547d\u4ee4\u7528\u6765\u53d6\u6d88\u547d\u4ee4\u522b\u540d\uff0c\u662f\u4e3ashell\u5185\u5efa\u547d\u4ee4\u3002\u5982\u679c\u9700\u8981\u53d6\u6d88\u4efb\u610f\u4e00\u4e2a\u547d\u4ee4\u522b\u540d\uff0c\u5219\u4f7f\u7528\u8be5\u547d\u4ee4\u522b\u540d\u4f5c\u4e3a […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3412"}],"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=3412"}],"version-history":[{"count":18,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3412\/revisions"}],"predecessor-version":[{"id":7327,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3412\/revisions\/7327"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}