{"id":18113,"date":"2024-11-18T17:34:20","date_gmt":"2024-11-18T09:34:20","guid":{"rendered":"https:\/\/fwq.ai\/blog\/18113\/"},"modified":"2024-11-18T17:34:20","modified_gmt":"2024-11-18T09:34:20","slug":"linux%e6%80%8e%e4%b9%88%e8%bf%9b%e5%85%a5shell","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/18113\/","title":{"rendered":"linux\u600e\u4e48\u8fdb\u5165shell"},"content":{"rendered":"<blockquote><p>\n  \u6709\u4e94\u79cd\u65b9\u6cd5\u53ef\u4ee5\u8fdb\u5165 linux shell\uff1a\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\u3001\u4f7f\u7528 shell \u547d\u4ee4\u3001\u4ece\u684c\u9762\u73af\u5883\u5207\u6362\u3001\u901a\u8fc7 ssh\u3001\u4ece\u5f15\u5bfc\u83dc\u5355\u8fdb\u5165\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/03\/2024060312241755977.jpg\" class=\"aligncenter\" title=\"linux\u600e\u4e48\u8fdb\u5165shell\u63d2\u56fe\" alt=\"linux\u600e\u4e48\u8fdb\u5165shell\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u8fdb\u5165 Linux Shell<\/strong><\/p>\n<p>Linux shell \u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u754c\u9762\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u6587\u672c\u547d\u4ee4\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u4e92\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u8fdb\u5165 Linux shell \u7684\u65b9\u6cd5\uff1a<\/p>\n<p><strong>1. \u6253\u5f00\u7ec8\u7aef\u7a97\u53e3<\/strong><\/p>\n<p>\u8fd9\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li> <strong>\u5feb\u6377\u952e\uff1a<\/strong> Ctrl + Alt + T<\/li>\n<li> <strong>\u5e94\u7528\u7a0b\u5e8f\u83dc\u5355\uff1a<\/strong> \u5bfc\u822a\u81f3\u5e94\u7528\u7a0b\u5e8f\u83dc\u5355\u5e76\u641c\u7d22\u201c\u7ec8\u7aef\u201d\u6216\u201c\u547d\u4ee4\u884c\u201d<\/li>\n<li> <strong>\u547d\u4ee4\u884c\uff1a<\/strong> \u5728\u53e6\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\u4e2d\u8fd0\u884c xterm \u6216 gnome-terminal \u547d\u4ee4<\/li>\n<\/ul>\n<p><strong>2. \u4f7f\u7528 Shell \u547d\u4ee4<\/strong><\/p>\n<p>\u5982\u679c\u5df2\u7ecf\u5728\u6d3b\u52a8\u4f1a\u8bdd\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6253\u5f00\u4e00\u4e2a\u65b0\u7684 shell\uff1a<\/p>\n<ul>\n<li>bash<\/li>\n<li>sh<\/li>\n<\/ul>\n<p><strong>3. \u4ece\u684c\u9762\u73af\u5883\u5207\u6362<\/strong><\/p>\n<p>\u67d0\u4e9b\u684c\u9762\u73af\u5883\u5141\u8bb8\u7528\u6237\u76f4\u63a5\u4ece\u684c\u9762\u5207\u6362\u5230 shell\uff1a<\/p>\n<ul>\n<li> <strong>GNOME\uff1a<\/strong>\u6309 Alt + F2\uff0c\u7136\u540e\u8f93\u5165 gnome-terminal<\/li>\n<li> <strong>KDE\uff1a<\/strong>\u6309 Alt + F2\uff0c\u7136\u540e\u8f93\u5165 konsole<\/li>\n<\/ul>\n<p><strong>4. \u4f7f\u7528 SSH<\/strong><\/p>\n<p>\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6253\u5f00 shell\uff1a<\/p>\n<ul>\n<li>ssh username@server-address<\/li>\n<\/ul>\n<p><strong>5. \u4ece\u5f15\u5bfc\u83dc\u5355\u8fdb\u5165<\/strong><\/p>\n<p>\u4e00\u4e9b Linux \u53d1\u884c\u7248\u5141\u8bb8\u7528\u6237\u5728\u5f15\u5bfc\u8fc7\u7a0b\u4e2d\u8fdb\u5165 shell\uff1a<\/p>\n<ul>\n<li> <strong>Grub\uff1a<\/strong>\u6309 e \u952e\u7f16\u8f91\u5f15\u5bfc\u83dc\u5355\uff0c\u7136\u540e\u6dfb\u52a0 init=\/bin\/sh \u6216 init=\/bin\/bash<\/li>\n<li> <strong>UEFI\uff1a<\/strong>\u5bfc\u822a\u81f3\u5f15\u5bfc\u9009\u9879\u5e76\u9009\u62e9\u201cEFI Shell\u201d<\/li>\n<\/ul>\n<p>\u4e00\u65e6\u60a8\u8fdb\u5165 shell\uff0c\u60a8\u5c06\u770b\u5230\u4e00\u4e2a\u63d0\u793a\uff0c\u4f8b\u5982 $ \u6216 #\u3002\u73b0\u5728\u60a8\u53ef\u4ee5\u4f7f\u7528\u5404\u79cd\u547d\u4ee4\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u4e92\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fdb\u5165shell\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>\u6709\u4e94\u79cd\u65b9\u6cd5\u53ef\u4ee5\u8fdb\u5165 linux shell\uff1a\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\u3001\u4f7f\u7528 shell \u547d\u4ee4\u3001\u4ece\u684c\u9762\u73af\u5883\u5207\u6362\u3001\u901a\u8fc7 ssh\u3001\u4ece\u5f15\u5bfc\u83dc\u5355\u8fdb\u5165\u3002 \u5982\u4f55\u8fdb\u5165 Linux Shell Linux shell \u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u754c\u9762\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u6587\u672c\u547d\u4ee4\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u4e92\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u8fdb\u5165 Linux shell \u7684\u65b9\u6cd5\uff1a 1. \u6253\u5f00\u7ec8\u7aef\u7a97\u53e3 \u8fd9\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a \u5feb\u6377\u952e\uff1a Ctrl + Alt + T \u5e94\u7528\u7a0b\u5e8f\u83dc\u5355\uff1a \u5bfc\u822a\u81f3\u5e94\u7528\u7a0b\u5e8f\u83dc\u5355\u5e76\u641c\u7d22\u201c\u7ec8\u7aef\u201d\u6216\u201c\u547d\u4ee4\u884c\u201d \u547d\u4ee4\u884c\uff1a \u5728\u53e6\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\u4e2d\u8fd0\u884c xterm \u6216 gnome-terminal \u547d\u4ee4 2. \u4f7f\u7528 Shell \u547d\u4ee4 \u5982\u679c\u5df2\u7ecf\u5728\u6d3b\u52a8\u4f1a\u8bdd\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6253\u5f00\u4e00\u4e2a\u65b0\u7684 shell\uff1a bash sh 3. \u4ece\u684c\u9762\u73af\u5883\u5207\u6362 \u67d0\u4e9b\u684c\u9762\u73af\u5883\u5141\u8bb8\u7528\u6237\u76f4\u63a5\u4ece\u684c\u9762\u5207\u6362\u5230 shell\uff1a GNOME\uff1a\u6309 Alt + F2\uff0c\u7136\u540e\u8f93\u5165 gnome-terminal KDE\uff1a\u6309 Alt + F2\uff0c\u7136\u540e\u8f93\u5165 konsole 4. [&hellip;]<\/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-18113","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18113","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=18113"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18113\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=18113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=18113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=18113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}