{"id":472,"date":"2023-09-02T20:14:56","date_gmt":"2023-09-02T18:14:56","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=472"},"modified":"2023-09-02T20:14:57","modified_gmt":"2023-09-02T18:14:57","slug":"nushell-alternatives-terminal-fuer-linux","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/02\/nushell-alternatives-terminal-fuer-linux\/","title":{"rendered":"Nushell &#8211; Alternatives Terminal f\u00fcr Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Die standardm\u00e4\u00dfige Shell unter Linux ist unter den meisten Distributionen die Bash. Sie ist einfach gehalten und jeder sollte problemlos damit schnell arbeiten k\u00f6nnen. Sie ist jedoch in manchen Dingen nicht unbedingt erfolgreich, vor allem beim Verbinden von Befehlen untereinander kann die Bash schon ein wenig umst\u00e4ndlich sein.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die Nushell wurde in der Sprache Rust geschrieben, ist sehr schlank und vor allem auf das Thema Pipes &#8211; also Weiterleitungen optimiert. Zus\u00e4tzlich lie\u00dfen sich die Entwickler von zahlreichen Programmiersprachen und von der Powershell von Microsoft inspirieren. \u00dcber 400 eigene Befehle wurden direkt in die Nushell integriert.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Nushell installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Die meisten Distributionen f\u00fchren die Nushell noch nicht in ihren Repositorys (<em>Arch Linux und Void sind kleine Ausnahmen<\/em>). Sie finden diese Software auf&nbsp;<a href=\"https:\/\/github.com\/nushell\/nushell\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub<\/a>&nbsp;zum Download &#8211; in meinem Fall lud ich mir die Datei &#8222;<strong>nu-0.65.0-x86_64-unknown-linux-gnu.tar.gz<\/strong>&#8220; herunter, diese gilt es nur zu entpacken. Die Dateien:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>nu nu_plugin_example nu_plugin_gstat nu_plugin_inc nu_plugin_query<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">verschiebt man sich am einfachsten als\u00a0Administrator\u00a0auf dem\u00a0Terminal\u00a0nach &#8222;<em>\/usr\/bin\/<\/em>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mv nu nu_plugin_example nu_plugin_gstat nu_plugin_inc nu_plugin_query \/usr\/bin\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Nushell nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Nach dieser Installation l\u00e4sst sich die Nushell am Terminal mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nu<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">starten:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-1024x576.jpg\" alt=\"\" class=\"wp-image-473\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Beim ersten Start m\u00f6chte die Software ihre Konfiguration erstellen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>No environment config file found at \/home\/robertg\/.config\/nushell\/env.nu\nWould you like to create one with defaults (Y\/n): \n\nConfig file created at: \/home\/robertg\/.config\/nushell\/env.nu\nNo config file found at \/home\/robertg\/.config\/nushell\/config.nu\nWould you like to create one with defaults (Y\/n): \n\nConfig file created at: \/home\/robertg\/.config\/nushell\/config.nu<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Best\u00e4tigen Sie einfach zweimalig mit\u00a0<strong><kbd>Eingabe<\/kbd><\/strong>, anschlie\u00dfend l\u00e4sst sich die Software nutzen &#8211; hier beispielsweise der einfache Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-1-1024x576.jpg\" alt=\"\" class=\"wp-image-474\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Eine der St\u00e4rken der Nushell sind wie schon beschrieben Pipes &#8211; hier ein einfaches Beispiel um Dateien nach der Gr\u00f6\u00dfe zur\u00fcck zu sortieren:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls | sort-by size | reverse<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-2-1024x576.jpg\" alt=\"\" class=\"wp-image-475\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-2-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-2-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-2-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-2-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/nu-2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Das komplette Handbuch finden Sie unter\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/www.nushell.sh\/book\/#getting-help\" target=\"_blank\">Nushell Handbuch<\/a>, weitere Tipps unter\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/www.nushell.sh\/cookbook\/\" target=\"_blank\">Nushell Kochbuch<\/a>.<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"472\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"472\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Die standardm\u00e4\u00dfige Shell unter Linux ist unter den meisten Distributionen die Bash. Sie ist einfach gehalten und jeder sollte problemlos damit schnell arbeiten k\u00f6nnen. Sie ist jedoch in manchen Dingen nicht unbedingt erfolgreich, vor allem beim Verbinden von Befehlen untereinander kann die Bash schon ein wenig umst\u00e4ndlich sein. Die Nushell wurde in der Sprache Rust [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":475,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,7,6],"class_list":["post-472","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","tag-kommandozeile","tag-shell","tag-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=472"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/472\/revisions"}],"predecessor-version":[{"id":476,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/472\/revisions\/476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/475"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}