{"id":283062,"date":"2023-10-01T09:00:02","date_gmt":"2023-10-01T01:00:02","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=283062"},"modified":"2023-09-27T09:47:20","modified_gmt":"2023-09-27T01:47:20","slug":"txujtrbbmlhg","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/txujtrbbmlhg.html","title":{"rendered":"\u7edf\u4fe1 UOS \u5c06\u63a8 Rust \u7248 Bash \u547d\u4ee4\u884c\u5de5\u5177 utshell\uff0c\u652f\u6301\u9632\u7be1\u6539\u3001\u9632\u6ea2\u51fa"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u8fd1\u65e5\u6d88\u606f\uff0c\u8fd1\u5e74\u6765\uff0cRust \u91cd\u6784\u7684\u70ed\u6f6e\u5e2d\u5377\u6574\u4e2a\u5f00\u53d1\u5708\uff0cRust \u5728\u5b89\u5168\u6027\u3001\u9ad8\u6548\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u7b49\u65b9\u9762\u90fd\u6709\u4e00\u5b9a\u4f18\u52bf\uff0c\u5305\u62ec Windows\u3001Linux \u5185\u6838\u4e5f\u5e26\u6765\u4e86 Rust \u652f\u6301\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u7edf\u4fe1\u8f6f\u4ef6\u4eca\u65e5\u5ba3\u5e03\uff0c\u7edf\u4fe1 UOS \u670d\u52a1\u5668\u7248\u5c06\u4e8e\u4e0d\u4e45\u540e\u63a8\u51fa Rust \u7248 Bash\uff0c\u540d\u4e3a utshell\uff0c\u65e8\u5728\u7a81\u7834\u4f20\u7edf Shell \u6240\u9762\u4e34\u7684\u5b89\u5168\u5c40\u9650\u3002<\/p>\n

\"\"<\/p>\n

Bash \u662f\u4e00\u79cd\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd Unix \u548c Linux \u7cfb\u7edf\u7684 Shell \u7a0b\u5e8f\uff0c\u662f Bourne shell \u7684\u540e\u7ee7\u517c\u5bb9\u7248\u672c\u4e0e\u5f00\u653e\u6e90\u4ee3\u7801\u7248\u672c\u3002<\/p>\n

\u7edf\u4fe1\u8f6f\u4ef6\u8868\u793a\uff0c\u5728 Bash \u4e2d\uff0c\u6709\u4e00\u4e9b\u547d\u4ee4\u6ca1\u6709\u5bf9\u53c2\u6570\u8fdb\u884c\u9632\u7be1\u6539\u68c0\u67e5\uff0c\u56e0\u800c\u7ed9\u7cfb\u7edf\u5e26\u6765\u4e86\u5b89\u5168\u98ce\u9669\u3002<\/p>\n

\u4f8b\u5982\uff0calias \u547d\u4ee4\u5141\u8bb8\u7528\u6237\u4e3a\u5176\u4ed6\u547d\u4ee4\u6216\u547d\u4ee4\u5e8f\u5217\u521b\u5efa\u522b\u540d\uff0c\u7136\u800c\u5b83\u5e76\u672a\u5bf9\u53c2\u6570\u8fdb\u884c\u9632\u7be1\u6539\u68c0\u67e5\uff0c\u8fdb\u800c\u5bfc\u81f4\u672a\u7ecf\u68c0\u67e5\u7684\u53c2\u6570\u53ef\u80fd\u4f1a\u88ab\u5229\u7528\u6765\u6267\u884c\u6076\u610f\u4ee3\u7801\u6216\u8fdb\u884c\u672a\u7ecf\u6388\u6743\u7684\u64cd\u4f5c\u3002<\/p>\n

\"\"<\/p>\n

\u4e3a\u4e86\u5e94\u5bf9\u4e0a\u8ff0\u95ee\u9898\uff0cutshell \u5bf9 alias \u547d\u4ee4\u7684\u89c4\u5219\u8fdb\u884c\u4e86\u660e\u786e\u754c\u5b9a\uff0c\u76ee\u7684\u5728\u4e8e\u786e\u4fdd\u4f7f\u7528\u7684\u4fbf\u6377\u6027\uff0c\u5e76\u4e14\u80fd\u591f\u6709\u6548\u5730\u9632\u6b62\u547d\u4ee4\u88ab\u6076\u610f\u7be1\u6539\uff0c\u4ece\u800c\u9650\u5236\u6076\u610f\u884c\u4e3a\u6216\u8bef\u64cd\u4f5c\u7684\u53d1\u751f\u3002<\/p>\n

\u5f53\u522b\u540d\u548c $PATH \u4e0b\u53ef\u6267\u884c\u6587\u4ef6\u91cd\u540d\u65f6\uff0c\u53ea\u5141\u8bb8\u522b\u540d\u548c\u53ef\u6267\u884c\u6587\u4ef6\u4e00\u81f4\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6211\u4eec\u60f3\u8981\u521b\u5efa\u4e00\u4e2a\u522b\u540d\u201cls\u201d\uff0c\u90a3\u4e48\u4e0e\u4e4b\u5bf9\u5e94\u7684\u53ef\u6267\u884c\u547d\u4ee4\u4e5f\u5fc5\u987b\u662f\u201cls\u201d\uff0c\u4e14\u5141\u8bb8\u5728\u547d\u4ee4\u4e2d\u6dfb\u52a0\u53c2\u6570\uff0c\u4ee5\u4fbf\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u5bf9\u547d\u4ee4\u8fdb\u884c\u4e2a\u6027\u5316\u5236\u5b9a\u3002<\/p>\n

\u522b\u540d\u4e0d\u80fd\u4e0e\u5176\u4ed6\u522b\u540d\u3001\u51fd\u6570\u540d\u79f0\u53d1\u751f\u91cd\u540d\uff0c\u4ee5\u907f\u514d\u5728\u4f7f\u7528\u522b\u540d\u65f6\u51fa\u73b0\u4e8c\u4e49\u6027\uff0c\u8fdb\u800c\u66f4\u597d\u5730\u786e\u4fdd\u64cd\u4f5c\u7cfb\u7edf\u80fd\u591f\u6b63\u786e\u7406\u89e3\u7528\u6237\u7684\u6307\u4ee4\uff0c\u907f\u514d\u6df7\u6dc6\u548c\u8bef\u89e3\u3002<\/p>\n

\u4e0d\u4ec5\u4ec5\u9650\u4e8e alias \u547d\u4ee4\uff0cutshell \u8fd8\u5bf9\u6240\u6709\u547d\u4ee4\u8fdb\u884c\u4e86\u68c0\u67e5\uff0c\u5e76\u5bf9\u90a3\u4e9b\u53ef\u80fd\u53d7\u5230\u6076\u610f\u7be1\u6539\u5a01\u80c1\u7684\u547d\u4ee4\u8fdb\u884c\u4e86\u89c4\u5219\u7684\u4f18\u5316\u5904\u7406\uff0c\u5982 hash \u548c function \u547d\u4ee4\u7b49\u3002<\/p>\n

\u5728 Bash \u4e2d\uff0cmapfile \u547d\u4ee4\u662f\u7528\u4e8e\u5bf9\u6570\u7ec4\u8fdb\u884c\u8d4b\u503c\u7684\u5de5\u5177\uff0c\u4f46\u5b83\u5e76\u6ca1\u6709\u5bf9\u6570\u7ec4\u7684\u8d8a\u754c\u60c5\u51b5\u8fdb\u884c\u6709\u6548\u7684\u68c0\u67e5\u548c\u63a7\u5236\u3002\u5f53\u7528\u6237\u8f93\u5165\u7684\u53c2\u6570\u6570\u91cf\u8d85\u8fc7\u6570\u7ec4\u5bb9\u91cf\u65f6\uff0c\u6ea2\u51fa\u90e8\u5206\u53ef\u80fd\u4f1a\u88ab\u8bef\u5f53\u4f5c\u547d\u4ee4\u6765\u6267\u884c\uff0c\u4ece\u800c\u5f15\u53d1\u6f5c\u5728\u7684\u5b89\u5168\u9690\u60a3\u3002<\/p>\n

\u4e3a\u4e86\u907f\u514d\u4e0a\u8ff0\u60c5\u51b5\u7684\u53d1\u751f\uff0cutshell \u91c7\u53d6\u4e86\u5bf9\u6570\u7ec4\u8fb9\u754c\u7684\u5224\u65ad\u63aa\u65bd\u3002\u4f8b\u5982\uff0c\u5f53\u4f20\u5165\u7684\u53c2\u6570\u8fc7\u591a\u65f6\uff0c\u81ea\u52a8\u622a\u65ad\u6216\u7ed9\u51fa\u8b66\u793a\u7b49\uff0c\u4ece\u800c\u4fdd\u8bc1\u53ea\u6709\u5408\u6cd5\u3001\u9884\u671f\u7684\u53c2\u6570\u624d\u80fd\u88ab\u4f20\u9012\u7ed9 mapfile \u547d\u4ee4\u3002<\/p>\n

\u6b64\u5916\uff0c\u901a\u8fc7\u4f7f\u7528 Rust \u91cd\u6784 Bash\uff0cutshell \u4e0d\u4ec5\u80fd\u7ee7\u627f Rust \u7684\u201c\u6e90\u751f\u201d\u5b89\u5168\u6027\uff0c\u8fd8\u80fd\u5728\u4ee3\u7801\u5c42\u9762\u5b9e\u73b0\u66f4\u9ad8\u7684\u81ea\u4e3b\u53ef\u63a7\u6027\uff0c\u4ece\u800c\u63d0\u5347\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n

6 \u6708\u521d\uff0c\u7edf\u4fe1 UOS \u670d\u52a1\u5668\u7248 V20\uff081060\uff09\u5df2\u96c6\u6210\u4e86 utshell \u7684\u90e8\u5206\u529f\u80fd\uff0c\u4e3a\u5373\u5c06\u53d1\u5e03\u7684\u5b8c\u6574\u7248 utshell \u63d0\u4f9b\u4e86\u521d\u6b65\u4f53\u9a8c\u3002\u9644\u4e0b\u8f7d\u5730\u5740\uff1a<\/p>\n

deepin \u793e\u533a\u5730\u5740\uff1a<\/strong><\/p>\n

https:\/\/github.com\/linuxdeepin\/utshell<\/span><\/a><\/p>\n

\u6b27\u62c9\u793e\u533a\u5730\u5740\uff1a<\/strong><\/p>\n

https:\/\/gitee.com\/openeuler\/utshell<\/span><\/a><\/p>\n

\u9f99\u8725\u793e\u533a\u5730\u5740\uff1a<\/strong><\/p>\n

https:\/\/gitee.com\/anolis\/utshell<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

\u7edf\u4fe1\u8f6f\u4ef6\u4eca\u65e5\u5ba3\u5e03\uff0c\u7edf\u4fe1 UOS \u670d\u52a1\u5668\u7248\u5c06\u4e8e\u4e0d\u4e45\u540e\u63a8\u51fa Rust \u7248 Bash\uff0c\u540d\u4e3a utshell\uff0c\u65e8\u5728\u7a81\u7834 […]<\/p>\n","protected":false},"author":643,"featured_media":283065,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-283062","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/283062","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\/643"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=283062"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/283062\/revisions"}],"predecessor-version":[{"id":283873,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/283062\/revisions\/283873"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/283065"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=283062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=283062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=283062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}