﻿{"id":6583,"date":"2021-03-08T20:06:11","date_gmt":"2021-03-08T12:06:11","guid":{"rendered":"https:\/\/www.linuxmi.com\/?p=6583"},"modified":"2021-03-08T20:06:11","modified_gmt":"2021-03-08T12:06:11","slug":"macchina-linux-system-info","status":"publish","type":"post","link":"https:\/\/www.linuxmi.com\/macchina-linux-system-info.html","title":{"rendered":"Macchina &#8211; Linux\u4e2d\u663e\u793a\u57fa\u672c\u7cfb\u7edf\u4fe1\u606f"},"content":{"rendered":"<p>Macchina\u662f\u53e6\u4e00\u79cd\u5728Linux\u4e2d\u83b7\u53d6\u57fa\u672c\u7cfb\u7edf\u4fe1\u606f\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u7c7b\u4f3c\u4e8eNeofetch\uff0c\u4f46\u4e13\u6ce8\u4e8e\u6027\u80fd\u548c\u7b80\u7ea6\u6027\u3002<\/p>\n<p>\u8be5\u8f6f\u4ef6\u662f\u7528Rust\u7f16\u5199\u7684\uff0c\u5b83\u663e\u793a\u57fa\u672c\u7684\u7cfb\u7edf\u4fe1\u606f\uff0c\u5305\u62ec\u4e3b\u673a\u540d\uff0c\u5236\u9020\u5546\uff0c\u5185\u6838\u7248\u672c\uff0c\u6b63\u5e38\u8fd0\u884c\u65f6\u95f4\uff0c\u684c\u9762\u73af\u5883\uff0c\u5904\u7406\u5668\uff0c\u5185\u5b58\/\u7535\u6c60\u72b6\u6001\u7b49\u3002 Macchina\u7684\u8fd0\u884c\u901f\u5ea6\u975e\u5e38\u5feb\uff0c\u6bd4neofetch\u7684\u8fd0\u884c\u901f\u5ea6\u5feb8.53\u00b10.72\u500d\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6588 size-full\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/Macchina-3.png\" alt=\"\" width=\"866\" height=\"497\" \/><\/p>\n<p>Macchina\u662f\u4e00\u4e2a\u6b63\u5728\u79ef\u6781\u5f00\u53d1\u4e2d\u7684\u65b0\u9879\u76ee\u3002 \u901a\u8fc7\u6dfb\u52a0&#8211;theme\u6216-t\u6807\u5fd7\uff0c\u53ef\u4ee5\u6307\u5b9a\u53d7\u652f\u6301\u7684\u4e3b\u9898\u4e4b\u4e00\u3002 \u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u5b83\u4eec\u662f\uff1adefault\uff0calt\u548clong\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6589 size-full\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/Macchina-4.png\" alt=\"\" width=\"866\" height=\"519\" \/><\/p>\n<p>\u60a8\u53ef\u4ee5\u6307\u5b9a\u952e\u989c\u8272(&#8211;color \/ -c)\u3001\u5206\u9694\u7b26\u989c\u8272 (&#8211;separator-color \/ -C)\u3001\u8ba9\u5b83\u663e\u793a\u8c03\u8272\u677f (-p)\u548c\u4ee5\u6761\u5f62\u663e\u793a\u5185\u5b58\u4f7f\u7528\u91cf\u548c\u7535\u6c60\u767e\u5206\u6bd4(-b)\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6590 size-full\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/Macchina-5.png\" alt=\"\" width=\"866\" height=\"497\" \/><\/p>\n<p>\u5b83\u8fd8\u5177\u6709\u66f4\u6539\u5de6\u586b\u5145\u548c\u95f4\u8ddd\u7684\u9009\u9879\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Ubuntu\u4e2d\u5b89\u88c5Macchina\uff1a<\/strong><\/p>\n<p>\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u53ef\u4ee5\u901a\u8fc7crates.io\u5b89\u88c5\u8be5\u8f6f\u4ef6\u3002<\/p>\n<p>1\u3001\u9996\u5148\u6253\u5f00\u7ec8\u7aef\u5e76\u8fd0\u884c\u547d\u4ee4\u6765\u5b89\u88c5cargo\uff1a<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ <span style=\"color: #ff0000;\">sudo apt install cargo<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6586\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/Macchina-1.png\" alt=\"\" width=\"866\" height=\"497\" \/><\/p>\n<p>2\u3001\u7136\u540e\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u8be5\u5de5\u5177\uff1a<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ <span style=\"color: #ff0000;\">cargo install macchina<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6587 size-full\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/Macchina-2.png\" alt=\"\" width=\"866\" height=\"629\" \/><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u6240\u9700\u7684\u6807\u5fd7\u8fd0\u884c ~\/.cargo\/bin\/macchina\u3002<\/p>\n<p>\u5982\u679c\u60a8\u66f4\u559c\u6b22\u4f7f\u7528\u547d\u4ee4macchina\uff0c\u8bf7\u8fd0\u884c\u547d\u4ee4\u6765\u7f16\u8f91\u7528\u6237\u7684profile<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ gedit ~\/.profile<\/p>\n<p>\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u884c\u6dfb\u52a0&#8221;.cargo\/bin\u5230\u4f60\u7684PATH:<\/p>\n<pre style=\"margin: 1.2em 0px; line-height: 1.2em; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 1em;\"><code style=\"background: #292824; margin: 0px 0.15em; padding: 0.5em; border-radius: 3px; border: 1px solid #cccccc; color: #a6a28c; overflow: auto; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 0.85em; display: block !important; white-space: pre; -ms-overflow-x: auto; -moz-text-size-adjust: none;\"># \u8bbe\u7f6e\u8def\u5f84\uff0c\u4f7f\u5176\u5305\u542b\u7528\u6237\u7684\u79c1\u6709bin(\u5982\u679c\u5b58\u5728)\r\n<span style=\"color: #b854d4;\">if<\/span> [ -d <span style=\"color: #60ac39;\">\"$HOME\/.cargo\/bin\"<\/span> ] ; then\r\n    PATH=<span style=\"color: #60ac39;\">\"$HOME\/.cargo\/bin:$PATH\"<\/span>\r\nfis\r\n<\/code><\/pre>\n<p>\u6ce8\u9500\u5e76\u91cd\u65b0\u767b\u5f55\u4ee5\u5e94\u7528\u65b0\u7684PATH\u3002<\/p>\n<p><strong>\u5378\u8f7dMacchina\uff1a<\/strong><\/p>\n<p>\u8981\u901a\u8fc7cargo\u5220\u9664\u8f6f\u4ef6\uff0c\u8bf7\u8fd0\u884c\u547d\u4ee4\uff1a<\/p>\n<p>cargo uninstall macchina<\/p>\n<p>\u5982\u679c\u60a8\u4e0d\u4f7f\u7528cargo\uff0c\u53ea\u9700\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5c06\u5176\u5378\u4e0b\uff1a<\/p>\n<p>sudo apt remove &#8211;purge cargo<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Macchina\u662f\u53e6\u4e00\u79cd\u5728Linux\u4e2d\u83b7\u53d6\u57fa\u672c\u7cfb\u7edf\u4fe1\u606f\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u7c7b\u4f3c\u4e8eNeofetch\uff0c\u4f46\u4e13\u6ce8\u4e8e &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,2],"tags":[599],"class_list":["post-6583","post","type-post","status-publish","format-standard","hentry","category-linux","category-zixun","tag-macchina"],"aioseo_notices":[],"views":937,"_links":{"self":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/6583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/comments?post=6583"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/6583\/revisions"}],"predecessor-version":[{"id":6591,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/6583\/revisions\/6591"}],"wp:attachment":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/media?parent=6583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/categories?post=6583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/tags?post=6583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}