{"id":16015,"date":"2024-11-18T15:12:49","date_gmt":"2024-11-18T07:12:49","guid":{"rendered":"https:\/\/fwq.ai\/blog\/16015\/"},"modified":"2024-11-18T15:12:49","modified_gmt":"2024-11-18T07:12:49","slug":"linux%e6%99%ae%e9%80%9a%e7%94%a8%e6%88%b7%e7%99%bb%e5%bd%95%e7%9a%84%e6%8f%90%e7%a4%ba%e7%ac%a6%e6%98%af%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/16015\/","title":{"rendered":"linux\u666e\u901a\u7528\u6237\u767b\u5f55\u7684\u63d0\u793a\u7b26\u662f\u4ec0\u4e48"},"content":{"rendered":"<blockquote><p>\n  linux\u666e\u901a\u7528\u6237\u767b\u5f55\u7684\u63d0\u793a\u7b26\u662f\u7f8e\u5143\u7b26\u53f7\u201c$\u201d\uff0c\u8fd9\u8868\u793a\u7528\u6237\u5904\u4e8e\u6807\u51c6\u6743\u9650\u6a21\u5f0f\u4e0b\uff0c\u5e76\u5177\u6709\u57fa\u672c\u7684\u64cd\u4f5c\u6743\u9650\uff0c\u65e0\u8bba\u63d0\u793a\u7b26\u7684\u5916\u89c2\u5982\u4f55\uff0c\u901a\u5e38\u90fd\u4f1a\u5728\u547d\u4ee4\u884c\u7684\u672b\u5c3e\u663e\u793a\uff0c\u5e76\u7b49\u5f85\u7528\u6237\u8f93\u5165\u547d\u4ee4\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202307\/05\/2023070517123878793.jpg\" class=\"aligncenter\" title=\"linux\u666e\u901a\u7528\u6237\u767b\u5f55\u7684\u63d0\u793a\u7b26\u662f\u4ec0\u4e48\u63d2\u56fe\" alt=\"linux\u666e\u901a\u7528\u6237\u767b\u5f55\u7684\u63d0\u793a\u7b26\u662f\u4ec0\u4e48\u63d2\u56fe\" \/><\/p>\n<p>\u672c\u6559\u7a0b\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux5.18.14\u7cfb\u7edf\u3001Dell G3\u7535\u8111\u3002<\/p>\n<p><strong>\u5728 Linux \u4e2d\uff0c\u666e\u901a\u7528\u6237\u767b\u5f55\u540e\u7684\u63d0\u793a\u7b26\uff08Shell \u63d0\u793a\u7b26\uff09\u901a\u5e38\u662f\u4e00\u4e2a\u7f8e\u5143\u7b26\u53f7\uff08$\uff09\u3002\u8fd9\u8868\u793a\u7528\u6237\u5904\u4e8e\u6807\u51c6\u6743\u9650\u6a21\u5f0f\u4e0b\uff0c\u5e76\u5177\u6709\u57fa\u672c\u7684\u64cd\u4f5c\u6743\u9650\u3002<\/strong><\/p>\n<p>\u63d0\u793a\u7b26\u7684\u5f62\u5f0f\u53ef\u80fd\u4f1a\u6839\u636e\u4e0d\u540c\u7684\u7ec8\u7aef\u73af\u5883\u548c\u914d\u7f6e\u800c\u6709\u6240\u4e0d\u540c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u63d0\u793a\u7b26\u793a\u4f8b\uff1a<\/p>\n<ul>\n<li>\n<p>Bash Shell\uff1a$<\/p>\n<\/li>\n<li>\n<p>Zsh Shell\uff1a$<\/p>\n<\/li>\n<li>\n<p>Tcsh Shell\uff1a%<\/p>\n<\/li>\n<li>\n<p>Korn Shell\uff1a$<\/p>\n<\/li>\n<\/ul>\n<p>\u65e0\u8bba\u63d0\u793a\u7b26\u7684\u5916\u89c2\u5982\u4f55\uff0c\u901a\u5e38\u90fd\u4f1a\u5728\u547d\u4ee4\u884c\u7684\u672b\u5c3e\u663e\u793a\uff0c\u5e76\u7b49\u5f85\u7528\u6237\u8f93\u5165\u547d\u4ee4\u3002<\/p>\n<p>\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u5f53\u7528\u6237\u4ee5 root \u6216\u8d85\u7ea7\u7528\u6237\u8eab\u4efd\u767b\u5f55\u65f6\uff0c\u63d0\u793a\u7b26\u901a\u5e38\u4f1a\u53d8\u4e3a\u4e95\u53f7\uff08#\uff09\uff0c\u8868\u793a\u7528\u6237\u5177\u6709\u7cfb\u7edf\u7ba1\u7406\u5458\u6743\u9650\u3002\u8fd9\u79cd\u63d0\u793a\u7b26\u8868\u660e\u7528\u6237\u53ef\u4ee5\u6267\u884c\u66f4\u9ad8\u7ea7\u522b\u7684\u64cd\u4f5c\uff0c\u4f46\u9700\u8981\u5c0f\u5fc3\u4f7f\u7528\u4ee5\u907f\u514d\u5bf9\u7cfb\u7edf\u9020\u6210\u610f\u5916\u7684\u5f71\u54cd\u3002<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u63d0\u793a\u7b26\u53ea\u662f\u4e00\u79cd\u8868\u793a\u7528\u6237\u767b\u5f55\u72b6\u6001\u548c\u6743\u9650\u7ea7\u522b\u7684\u6807\u8bc6\uff0c\u4e0d\u5f71\u54cd\u7528\u6237\u53ef\u4ee5\u6267\u884c\u7684\u547d\u4ee4\u6216\u64cd\u4f5c\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u666e\u901a\u7528\u6237\u767b\u5f55\u7684\u63d0\u793a\u7b26\u662f\u4ec0\u4e48\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux\u666e\u901a\u7528\u6237\u767b\u5f55\u7684\u63d0\u793a\u7b26\u662f\u7f8e\u5143\u7b26\u53f7\u201c$\u201d\uff0c\u8fd9\u8868\u793a\u7528\u6237\u5904\u4e8e\u6807\u51c6\u6743\u9650\u6a21\u5f0f\u4e0b\uff0c\u5e76\u5177\u6709\u57fa\u672c\u7684\u64cd\u4f5c\u6743\u9650\uff0c\u65e0\u8bba\u63d0\u793a\u7b26\u7684\u5916\u89c2\u5982\u4f55\uff0c\u901a\u5e38\u90fd\u4f1a\u5728\u547d\u4ee4\u884c\u7684\u672b\u5c3e\u663e\u793a\uff0c\u5e76\u7b49\u5f85\u7528\u6237\u8f93\u5165\u547d\u4ee4\u3002 \u672c\u6559\u7a0b\u64cd\u4f5c\u7cfb\u7edf\uff1aLinux5.18.14\u7cfb\u7edf\u3001Dell G3\u7535\u8111\u3002 \u5728 Linux \u4e2d\uff0c\u666e\u901a\u7528\u6237\u767b\u5f55\u540e\u7684\u63d0\u793a\u7b26\uff08Shell \u63d0\u793a\u7b26\uff09\u901a\u5e38\u662f\u4e00\u4e2a\u7f8e\u5143\u7b26\u53f7\uff08$\uff09\u3002\u8fd9\u8868\u793a\u7528\u6237\u5904\u4e8e\u6807\u51c6\u6743\u9650\u6a21\u5f0f\u4e0b\uff0c\u5e76\u5177\u6709\u57fa\u672c\u7684\u64cd\u4f5c\u6743\u9650\u3002 \u63d0\u793a\u7b26\u7684\u5f62\u5f0f\u53ef\u80fd\u4f1a\u6839\u636e\u4e0d\u540c\u7684\u7ec8\u7aef\u73af\u5883\u548c\u914d\u7f6e\u800c\u6709\u6240\u4e0d\u540c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u63d0\u793a\u7b26\u793a\u4f8b\uff1a Bash Shell\uff1a$ Zsh Shell\uff1a$ Tcsh Shell\uff1a% Korn Shell\uff1a$ \u65e0\u8bba\u63d0\u793a\u7b26\u7684\u5916\u89c2\u5982\u4f55\uff0c\u901a\u5e38\u90fd\u4f1a\u5728\u547d\u4ee4\u884c\u7684\u672b\u5c3e\u663e\u793a\uff0c\u5e76\u7b49\u5f85\u7528\u6237\u8f93\u5165\u547d\u4ee4\u3002 \u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u5f53\u7528\u6237\u4ee5 root \u6216\u8d85\u7ea7\u7528\u6237\u8eab\u4efd\u767b\u5f55\u65f6\uff0c\u63d0\u793a\u7b26\u901a\u5e38\u4f1a\u53d8\u4e3a\u4e95\u53f7\uff08#\uff09\uff0c\u8868\u793a\u7528\u6237\u5177\u6709\u7cfb\u7edf\u7ba1\u7406\u5458\u6743\u9650\u3002\u8fd9\u79cd\u63d0\u793a\u7b26\u8868\u660e\u7528\u6237\u53ef\u4ee5\u6267\u884c\u66f4\u9ad8\u7ea7\u522b\u7684\u64cd\u4f5c\uff0c\u4f46\u9700\u8981\u5c0f\u5fc3\u4f7f\u7528\u4ee5\u907f\u514d\u5bf9\u7cfb\u7edf\u9020\u6210\u610f\u5916\u7684\u5f71\u54cd\u3002 \u8bf7\u6ce8\u610f\uff0c\u63d0\u793a\u7b26\u53ea\u662f\u4e00\u79cd\u8868\u793a\u7528\u6237\u767b\u5f55\u72b6\u6001\u548c\u6743\u9650\u7ea7\u522b\u7684\u6807\u8bc6\uff0c\u4e0d\u5f71\u54cd\u7528\u6237\u53ef\u4ee5\u6267\u884c\u7684\u547d\u4ee4\u6216\u64cd\u4f5c\u3002 \u4ee5\u4e0a\u5c31\u662f\u666e\u901a\u7528\u6237\u767b\u5f55\u7684\u63d0\u793a\u7b26\u662f\u4ec0\u4e48\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-16015","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/16015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=16015"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/16015\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=16015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=16015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=16015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}