{"id":392,"date":"2023-09-02T18:40:15","date_gmt":"2023-09-02T16:40:15","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=392"},"modified":"2023-09-02T18:40:16","modified_gmt":"2023-09-02T16:40:16","slug":"microsoft-powershell-unter-linux-nutzen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/02\/microsoft-powershell-unter-linux-nutzen\/","title":{"rendered":"Microsoft Powershell unter Linux nutzen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Die Microsoft Powershell ist die Standard-Shell unter Microsoft Windows, nat\u00fcrlich gibt es unter Windows inzwischen auch WSL (Windows Subsystem f\u00fcr Linux) &#8211; diese ist jedoch mehr f\u00fcr Entwickler unter Windows gedacht. Die Microsoft Powershell interagiert direkt mit Windows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hin und wieder gibt es nat\u00fcrlich auch Windows-User, die von Windows auf Linux umsteigen und trotzdem mit der Powershell arbeiten m\u00f6chten. Der Umstieg von der Powershell auf die Bash ist doch etwas gew\u00f6hnungsbed\u00fcrftig. Nun, die Powershell von Microsoft gibt es auch f\u00fcr Linux.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Powershell installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sie finden Pakete f\u00fcr Debian und darauf basierende Systeme, sowie als RPM-Paket f\u00fcr openSUSE, Fedora, PCLinuxOS und so weiter, aber auch f\u00fcr macOS unter GitHub zum Download (etwa zur Mitte der Seite hinunter scrollen).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unter auf Debian basierenden Linux-Distributionen nutzen Sie nat\u00fcrlich das Debian-Paket, dieses installieren Sie einfach per Mausklick oder als root \u00fcber die Paket-Verwaltung auf dem Terminal mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install \/home\/nutzername\/Downloads\/powershell_VERSION.deb_amd64.deb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Befinden Sie sich auf dem Terminal bereits im Verzeichnis mit der Datei, k\u00fcrzen Sie den Befehl gleich etwas ab:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install .\/powershell_VERSION.deb_amd64.deb<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Powershell nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Um die Powershell zu \u00f6ffnen, \u00f6ffnen Sie ein beliebiges Terminal und geben den Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pwsh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">ein:<\/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\/powershell-1024x576.jpg\" alt=\"\" class=\"wp-image-393\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/powershell-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/powershell-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/powershell-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/powershell-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/powershell.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\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=\"392\" 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\">1    <\/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=\"392\" 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 Microsoft Powershell ist die Standard-Shell unter Microsoft Windows, nat\u00fcrlich gibt es unter Windows inzwischen auch WSL (Windows Subsystem f\u00fcr Linux) &#8211; diese ist jedoch mehr f\u00fcr Entwickler unter Windows gedacht. Die Microsoft Powershell interagiert direkt mit Windows. Hin und wieder gibt es nat\u00fcrlich auch Windows-User, die von Windows auf Linux umsteigen und trotzdem mit [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":393,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,7,6],"class_list":["post-392","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\/392","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=392"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":394,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/392\/revisions\/394"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/393"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}