{"id":174,"date":"2025-01-05T15:10:16","date_gmt":"2025-01-05T07:10:16","guid":{"rendered":"https:\/\/www.aitwg.com\/?p=174"},"modified":"2025-03-23T15:11:26","modified_gmt":"2025-03-23T07:11:26","slug":"%e5%9c%a8-ubuntu%e5%ae%89%e8%a3%9d-fish-shell","status":"publish","type":"post","link":"https:\/\/www.aitwg.com\/?p=174","title":{"rendered":"\u5728 Ubuntu\u5b89\u88dd Fish Shell"},"content":{"rendered":"\n<p>Installing Fish Shell on Ubuntu<\/p>\n\n\n\n<p>Fish Shell is a versatile option for Linux users, offering a seamless experience on distributions like Ubuntu. Follow these steps to get started:<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Step 1: Add the Fish Shell Repository<\/p>\n\n\n\n<p>$ sudo apt-add-repository ppa:fish-shell\/release-3<\/p>\n\n\n\n<p>Step 2: Update and Upgrade Repository Packages<\/p>\n\n\n\n<p>$ sudo apt-get update &amp;&amp; sudo apt-get upgrade<\/p>\n\n\n\n<p>Step 3: Install Fish Shell<\/p>\n\n\n\n<p>$ sudo apt-get install fish<\/p>\n\n\n\n<p>Step 4: Set Fish Shell as the Default Shell<\/p>\n\n\n\n<p>$ sudo chsh -s \/usr\/bin\/fish<\/p>\n\n\n\n<p>\u5b89\u88dd\u6642\u5fc5\u9808\u6ce8\u610f\uff0c\u5728\u5c07 Fish Shell \u8a2d\u70ba Default Shell \u6642\uff0c\u5fc5\u9808\u5148\u78ba\u5b9a\u8def\u5f91\u662f\u6b63\u78ba\u7684<\/p>\n\n\n\n<p>$which fish<\/p>\n\n\n\n<p>\u82e5\u662f\u8def\u5f91\u4e0d\u6b63\u78ba\uff0c\u6703\u5c0e\u81f4\u4e0b\u6b21\u7121\u6cd5\u9032\u5165\uff0c\u56e0\u70ba\u627e\u4e0d\u5230 Shell.<\/p>\n\n\n\n<p>\u6211\u4e4b\u524d\u66fe\u7d93\u5c31\u9019\u6a23\u628a root \u641e\u6b7b\uff0c\u5373\u4f7f\u7528 Recovery mode \u4e5f\u7121\u6cd5\u6551\u56de\u3002<\/p>\n\n\n\n<p>\u5f8c\u4f86\u53c3\u8003\u7db2\u53cb\u7684\u505a\u6cd5\uff0c\u7528\u53e6\u4e00\u500b\u5e33\u865f\u9032\u5165<\/p>\n\n\n\n<p>$sudo nano \/etc\/passwd. -&gt; \u628a root \u7684 shell \u8cc7\u8a0a\u66f4\u6b63<\/p>\n\n\n\n<p>\u624d\u628a root \u6551\u56de\u4f86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing Fish Shell on Ubuntu Fish Shell is a versati&hellip;&nbsp;<a href=\"https:\/\/www.aitwg.com\/?p=174\" rel=\"bookmark\"><span class=\"screen-reader-text\">\u5728 Ubuntu\u5b89\u88dd Fish Shell<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-6"],"_links":{"self":[{"href":"https:\/\/www.aitwg.com\/index.php?rest_route=\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aitwg.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aitwg.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aitwg.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aitwg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=174"}],"version-history":[{"count":1,"href":"https:\/\/www.aitwg.com\/index.php?rest_route=\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/www.aitwg.com\/index.php?rest_route=\/wp\/v2\/posts\/174\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/www.aitwg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aitwg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aitwg.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}