{"id":1102,"date":"2019-04-25T12:12:33","date_gmt":"2019-04-25T04:12:33","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1102"},"modified":"2019-04-28T12:03:39","modified_gmt":"2019-04-28T04:03:39","slug":"alias","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/alias","title":{"rendered":"alias\u547d\u4ee4 – \u8bbe\u7f6e\u547d\u4ee4\u522b\u540d"},"content":{"rendered":"\n
alias\u547d\u4ee4\u7528\u6765\u8bbe\u7f6e\u6307\u4ee4\u7684\u522b\u540d\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8be5\u547d\u4ee4\u53ef\u4ee5\u5c06\u4e00\u4e9b\u8f83\u957f\u7684\u547d\u4ee4\u8fdb\u884c\u7b80\u5316\u3002\u4f7f\u7528alias\u65f6\uff0c\u7528\u6237\u5fc5\u987b\u4f7f\u7528\u5355\u5f15\u53f7 ‘ ‘ \u5c06\u539f\u6765\u7684\u547d\u4ee4\u5f15\u8d77\u6765\uff0c\u9632\u6b62\u7279\u6b8a\u5b57\u7b26\u5bfc\u81f4\u9519\u8bef\u3002<\/p>\n\n\n\n
alias\u547d\u4ee4\u7684\u4f5c\u7528\u53ea\u5c40\u9650\u4e8e\u8be5\u6b21\u767b\u5165\u7684\u64cd\u4f5c\u3002\u82e5\u8981\u6bcf\u6b21\u767b\u5165\u90fd\u80fd\u591f\u4f7f\u7528\u8fd9\u4e9b\u547d\u4ee4\u522b\u540d\uff0c\u5219\u53ef\u5c06\u76f8\u5e94\u7684alias\u547d\u4ee4\u5b58\u653e\u5230bash\u7684\u521d\u59cb\u5316\u6587\u4ef6 \/etc\/bashrc\u4e2d\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f<\/strong>\uff1aalias [\u53c2\u6570]<\/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 \u67e5\u770b\u7cfb\u7edf\u5df2\u7ecf\u8bbe\u7f6e\u7684\u522b\u540d\uff1a<\/p>\n\n\n\n \u7ed9\u547d\u4ee4\u8bbe\u7f6e\u522b\u540d :<\/p>\n\n\n\n alias\u547d\u4ee4\u7528\u6765\u8bbe\u7f6e\u6307\u4ee4\u7684\u522b\u540d\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8be5\u547d\u4ee4\u53ef\u4ee5\u5c06\u4e00\u4e9b\u8f83\u957f\u7684\u547d\u4ee4\u8fdb\u884c\u7b80\u5316\u3002\u4f7f\u7528alias\u65f6\uff0c\u7528\u6237\u5fc5\u987b\u4f7f […]<\/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\/1102"}],"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=1102"}],"version-history":[{"count":12,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1102\/revisions"}],"predecessor-version":[{"id":1544,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1102\/revisions\/1544"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-p<\/td> \u6253\u5370\u5df2\u7ecf\u8bbe\u7f6e\u7684\u547d\u4ee4\u522b\u540d <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# alias -p
alias cp='cp -i'
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
alias mv='mv -i'
alias rm='rm -i'
alias which='alias | \/usr\/bin\/which --tty-only --read-alias --show-dot --show-tilde<\/pre>\n\n\n\n[root@linuxcool ~]# alias lx=ls
[root@linuxcool ~]# lx
anaconda-ks.cfg Desktop install.log install.log.syslog qte<\/pre>\n","protected":false},"excerpt":{"rendered":"