{"id":201926,"date":"2020-10-01T10:18:21","date_gmt":"2020-10-01T02:18:21","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=201926"},"modified":"2020-09-25T13:20:06","modified_gmt":"2020-09-25T05:20:06","slug":"exa-ls-tools","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/exa-ls-tools.html","title":{"rendered":"Exa – \u66ff\u4ee3ls\u547d\u4ee4\u7684\u5de5\u5177"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nExa\u662f\u4e00\u4e2a\u6f02\u4eae\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u4f7f\u7528\u4e0d\u540c\u7684\u989c\u8272\u6765\u663e\u793a\u5404\u79cd\u6587\u4ef6\u7c7b\u578b\u3001\u6587\u4ef6\u6743\u9650\u548c\u6240\u6709\u6743\u3001block\u548cinode\u7684\u4fe1\u606f\u7b49\u7b49\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u5982\u4f55\u5728\u5404\u4e2aLinux\u7cfb\u7edf\u4e2d\u5b89\u88c5Exa<\/strong><\/div>\n

\u5728Linux\u4e0a\u5b89\u88c5Exa\u6709\u4e24\u79cd\u65b9\u6cd5\u3002<\/p>\n

\u7b2c\u4e00\u79cd\u65b9\u6cd5<\/strong><\/span><\/div>\n

\u66f4\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4e0b\u8f7dexa\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u5e76\uff0c\u7136\u540e\u5c06\u5176\u653e\u5728\/usr\/local\/bin\u8def\u5f84\u4e2d\uff0c\u4f46\u662f\u9700\u8981\u5b89\u88c5Rust\u8bed\u8a00\u3002\u9996\u5148\uff0c\u4e0b\u8f7d\u5e76\u5b89\u88c5Rust\u7f16\u7a0b\u8bed\u8a00\u7684\u7f16\u8bd1\u5668\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

\r\n# curl https:\/\/sh.rustup.rs -sSf | sh\r\n<\/pre>\n

\"\"
\n\u6b64\u540e\uff0c\u5c06\u63d0\u4f9b\u9009\u9879\u5217\u8868\uff0c\u9009\u62e9\u7b2c\u4e00\u4e2a\u9009\u9879
\n\"\"
\n\u5b89\u88c5\u7a0b\u5e8f\u5c06\u7ee7\u7eed\u4e0b\u8f7d\u6240\u6709\u5fc5\u8981\u7684\u7ec4\u4ef6\u548c\u66f4\u65b0\uff0c\u6210\u529f\u5b89\u88c5\u4e4b\u540e\uff0c\u4f1a\u63d0\u793a\u5b89\u88c5\u5b8c\u6210\u3002
\n\"\"
\n\u63a5\u4e0b\u6765\u4e0b\u8f7dExa\u5b89\u88c5\u5305\uff0c\u4e0b\u8f7d\u76ee\u524d\u6700\u65b0\u7684\u7248\u672c0.9.0\u3002<\/p>\n

\r\n[root@localhost ~]# wget -c https:\/\/github.com\/ogham\/exa\/releases\/download\/v0.9.0\/exa-linux-x86_64-0.9.0.zip\r\n<\/pre>\n

\u5b8c\u6210\u4e0b\u8f7d\u4e4b\u540e\uff0c\u89e3\u538b\u6587\u4ef6\uff0c\u56e0\u4e3a\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\u662f.zip\u683c\u5f0f\uff0c\u5982\u679c\u6ca1\u6709\u5b89\u88c5unzip\u89e3\u538b\u5de5\u5177\uff0c\u9700\u8981\u5b89\u88c5\u3002<\/p>\n

\r\n# RHEL\/Centos\/Fedora\u5b89\u88c5unzip\u547d\u4ee4\uff1a\r\nyum -y install unzip\r\n# Ubuntu\/Deepin\u5b89\u88c5unzip\u547d\u4ee4\uff1a\r\nsudo apt install unzip\r\n# \u89e3\u538bexa-linux-x86_64-0.9.0.zip\r\n[root@localhost ~]# unzip exa-linux-x86_64-0.9.0.zip \r\n<\/pre>\n

\u89e3\u538b\u5b8c\u6210\u4e4b\u540e\uff0c\u53ef\u4ee5\u770b\u5230\u76ee\u5f55\u4e2d\uff0c\u5df2\u7ecf\u89e3\u538b\u51fa\u6765exa\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e86\u3002
\n\"\"
\n\u5c06\u4e8c\u8fdb\u5236\u6587\u4ef6\u79fb\u52a8\u5230\/usr\/local\/bin<\/code>\u6587\u4ef6\u5939\u4e2d\uff0c\u5e76\u4fee\u6539\u4e00\u4e2a\u7b80\u77ed\u7684\u540d\u5b57\uff1a<\/p>\n

\r\n[root@localhost ~]# mv exa-linux-x86_64 \/usr\/local\/bin\/exa\r\n<\/pre>\n
\u53e6\u4e00\u79cd\u65b9\u5f0f<\/strong><\/span><\/div>\n

\u53e6\u4e00\u79cd\u65b9\u5f0f\u5c31\u662f\u4e0b\u8f7dexa\u7684\u6e90\u7801\u5305\u4e86\uff0c\u5b89\u88c5\u4e4b\u524d\uff0c\u8fd8\u662f\u9700\u8981\u5b89\u88c5\u4f9d\u8d56\u5305\u7684\uff1a
\nRHEL\/Centos\/Fedora<\/strong><\/p>\n

\r\n# sudo yum install libgit2 cmake\r\n<\/pre>\n

\u4e0b\u4e00\u6b65\u5b89\u88c5rust\u8bed\u8a00\u7f16\u8bd1\u5668\u3001\u548cexa<\/p>\n

\r\n[root@localhost ~]# curl https:\/\/sh.rustup.rs -sSf | sh\r\n[root@localhost ~]# git clone https:\/\/github.com\/ogham\/exa\/archive\/v0.9.0.tar.gz\r\n[root@localhost ~]# cd exa\r\n[root@localhost exa-0.9.0]# make install\r\n<\/pre>\n

\"\"<\/p>\n

\u5982\u4f55\u4f7f\u7528<\/strong><\/div>\n

\u6700\u7b80\u5355\u7684\u4f7f\u7528\u65b9\u5f0f\u5c31\u662f\u547d\u4ee4\u540e\u9762\u52a0\u76ee\u5f55\uff1a<\/p>\n

\r\n[root@localhost ~]# exa \/etc\/\r\n<\/pre>\n

\"\"
\n\u8981\u5145\u5206\u5229\u7528\u8be5\u547d\u4ee4\uff0c\u5c31\u662f\u7528-l<\/code>\u9009\u9879\u3002\u5982\u56fe\u6240\u793a\uff0c\u5c06\u663e\u793a\u5f69\u8272\u8f93\u51fa\u3002<\/p>\n

\r\n[root@localhost ~]# exa -l \/var\/log\/\r\n<\/pre>\n

\"\"
\n\u4e0b\u9762\u7684\u547d\u4ee4\u663e\u793a\u4e86\u5176\u4ed6\u4fe1\u606f\uff0c\u6bd4\u5982\u7d22\u5f15\u8282\u70b9\u3001\u6587\u4ef6\/\u76ee\u5f55\u5927\u5c0f\u3001\u5757\u3001\u7528\u6237\u548c\u7ec4\u7b49\u7b49\u3002<\/p>\n

\r\n[root@localhost ~]# exa -abghHliS \/var\/log\/\r\n<\/pre>\n

\"\"
\n\u4e0b\u9762\u547d\u4ee4\u662f\u5217\u51fa\u6587\u4ef6\uff0c\u4ee5\u5c5e\u6027\u76ee\u5f55\u7ed3\u6784\u5217\u51fa\uff1a<\/p>\n

\r\n[root@localhost ~]# exa -a -l --tree \/var\/log\/\r\n<\/pre>\n

\"\"<\/p>\n

\u603b\u7ed3<\/strong><\/div>\n

exa\u6709\u8bb8\u591a\u9009\u9879\uff0c\u53ef\u4ee5\u4f7f\u7528exa --help<\/code>\u67e5\u770b\u8be6\u7ec6\u89e3\u91ca\u3002https:\/\/github.com\/ogham\/exa<\/a>\u4e5f\u53ef\u4ee5\u518dgithub\u4ed3\u5e93\u4e2d\u67e5\u770bexa\u7684\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728Linux\u4e0a\u5b89\u88c5Exa\u6709\u4e24\u79cd\u65b9\u6cd5\u3002 \u66f4\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4e0b\u8f7dexa\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u5e76\uff0c\u7136\u540e\u5c06\u5176\u653e\u5728\/usr\/local […]<\/p>\n","protected":false},"author":309,"featured_media":201927,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-201926","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/201926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/309"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=201926"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/201926\/revisions"}],"predecessor-version":[{"id":201940,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/201926\/revisions\/201940"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/201927"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=201926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=201926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=201926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}