{"id":357,"date":"2023-09-02T12:06:17","date_gmt":"2023-09-02T10:06:17","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=357"},"modified":"2023-09-02T12:06:18","modified_gmt":"2023-09-02T10:06:18","slug":"den-bash-prompt-am-linux-terminal-anpassen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/02\/den-bash-prompt-am-linux-terminal-anpassen\/","title":{"rendered":"Den Bash-Prompt am Linux-Terminal anpassen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Nicht jedem gef\u00e4llt der Prompt der Bash am\u00a0Terminal\u00a0unter Linux, je nach Distribution ist dieser anders gestaltet &#8211; hier einmal unter Debian Sid:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>robertg@robert-nblbwax9n:~$<\/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\/prompt-1024x576.jpg\" alt=\"\" class=\"wp-image-358\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Zu Beginn sehen Sie hier den\u00a0<strong>Nutzernamen<\/strong>\u00a0des aktuell angemeldeten Nutzers, nach dem &#8222;<strong>@<\/strong>&#8220; zeigt sich der\u00a0<strong>Name des Rechners<\/strong>, es endet mit dem\u00a0<strong>Verzeichnis<\/strong>, in dem man sich auf dem Terminal aktuell befindet &#8211; in diesem Fall zeigt sich mit &#8222;<strong>~<\/strong>&#8220; das Home-Verzeichnis.<br>Hier als weiteres Beispiel als root-Nutzer:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@robert-nblbwax9n:\/home\/robertg#<\/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\/prompt-1-1024x576.jpg\" alt=\"\" class=\"wp-image-359\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Und genau dieser Prompt l\u00e4sst sich wie gew\u00fcnscht anpassen. Sie k\u00f6nnen sich diverse Informationen anzeigen lassen, wie auch die farbliche Gestaltung \u00e4ndern.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Den Bash-Prompt anpassen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Als Erstes wollen wir uns einmal die aktuelle Konfiguration anzeigen, dies gelingt mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo $PS1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In meinem Fall erhalte ich hier die Ausgabe:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\\&#91;\\e]0;\\u@\\h: \\w\\a\\]${debian_chroot:+($debian_chroot)}\\&#91;\\033&#91;01;32m\\]\\u@\\h\\&#91;\\033&#91;00m\\]:\\&#91;\\033&#91;01;34m\\]\\w\\&#91;\\033&#91;00m\\]\\$<\/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\/prompt-2-1024x576.jpg\" alt=\"\" class=\"wp-image-360\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-2-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-2-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-2-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-2-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Und als root:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>${debian_chroot:+($debian_chroot)}\\&#91;\\033&#91;01;31m\\]\\u\\&#91;\\033&#91;00m\\]@\\h:\\w\\$<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit diesem angezeigten Code erhalten Sie also den Bash-Prompt (<em>Shell-Prompt<\/em>), der Ihnen angezeigt wird. Dies sieht ein wenig kompliziert aus, ist aber nicht wirklich der Fall &#8211; Sie m\u00fcssen nur verstehen, was eigentlich dahinter steckt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wollen wir ganz einfach beginnen, mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS1=''<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">legen wir fest wie der Bash-Prompt aussehen soll, unter Anf\u00fchrungszeichen geben wir den Code an. Keine Angst, solange Sie die \u00c4nderungen nicht speichern bleiben die \u00c4nderungen nur tempor\u00e4r &#8211; starten Sie das Terminal neu sind die Anpassungen wieder weg &#8211; Sie k\u00f6nnen also problemlos experimentieren.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wollen wir einfach nur einmal das Gr\u00f6\u00dfer-Zeichen als Shell-Prompt nutzen &#8211; ganz einfach:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS1='&gt; '<\/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\/prompt-3-1024x576.jpg\" alt=\"\" class=\"wp-image-361\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-3-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-3-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-3-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-3-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-3.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wir k\u00f6nnen aber statt eines beliebigen Zeichens auch einen gew\u00fcnschten Befehl angeben oder diesen irgendwo im Code einbauen &#8211; etwa den Befehl &#8222;<strong><code>uname -a<\/code><\/strong>&#8220; und anschlie\u00dfend das Gr\u00f6\u00dfer-Zeichen (<em>nach diesem erfolgt ein Leerzeichen, damit der Cursor etwas Abstand h\u00e4lt<\/em>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS1='$(uname-a) &gt; '<\/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\/prompt-4-1024x576.jpg\" alt=\"\" class=\"wp-image-362\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-4-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-4-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-4-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-4-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-4.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wollen Sie die Einstellungen dauerhaft speichern, schreiben Sie die \u00c4nderungen, wie als Befehl angegeben, in die in Ihrem Home-Verzeichnis versteckt liegende Datei &#8222;<strong>.bashrc<\/strong>&#8220; als neue Zeile. Anschlie\u00dfend starten Sie das Terminal neu oder laden die Einstellungen mit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source ~\/.bashrc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">neu.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nun wollen wir uns einmal ansehen, mit welchen Informationen wir den Shell-Prompt f\u00fcttern k\u00f6nnen (<em>die farbliche Gestaltung sehen wir uns sp\u00e4ter an, denn diese ist etwas komplizierter<\/em>):<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Code<\/th><th>Beschreibung<\/th><\/tr><tr><td><strong>\\a<\/strong><\/td><td>Die Shell-Glocke<\/td><\/tr><tr><td><strong>\\A<\/strong><\/td><td>Die Uhrzeit im 24-Stunden Format (hh:mm)<\/td><\/tr><tr><td><strong>\\d<\/strong><\/td><td>Das Datum im Format &#8222;Wochentag Monat Tag&#8220;<\/td><\/tr><tr><td><strong>\\e<\/strong><\/td><td>Das Escape Zeichen (033)<\/td><\/tr><tr><td><strong>\\h<\/strong><\/td><td>Der Hostname auf dem die Shell l\u00e4uft bis zum ersten Punkt<\/td><\/tr><tr><td><strong>\\H<\/strong><\/td><td>Der Hostname komplett<\/td><\/tr><tr><td><strong>\\j<\/strong><\/td><td>Die Anzahl der laufenden Jobs<\/td><\/tr><tr><td><strong>\\l<\/strong><\/td><td>Das TTY &#8211; Terminal auf dem die Shell l\u00e4uft<\/td><\/tr><tr><td><strong>\\n<\/strong><\/td><td>Neue Zeile<\/td><\/tr><tr><td><strong>\\t<\/strong><\/td><td>Die Uhrzeit im 24h Format (hh:mm:ss)<\/td><\/tr><tr><td><strong>\\T<\/strong><\/td><td>Die Uhrzeit im 12h Format (hh:mm:ss)<\/td><\/tr><tr><td><strong>\\r<\/strong><\/td><td>Zur\u00fcck<\/td><\/tr><tr><td><strong>\\s<\/strong><\/td><td>Die verwendete Shell<\/td><\/tr><tr><td><strong>\\u<\/strong><\/td><td>Der angemeldete Nutzer<\/td><\/tr><tr><td><strong>\\v<\/strong><\/td><td>Die Version der Shell<\/td><\/tr><tr><td><strong>\\V<\/strong><\/td><td>Das Release der Bash<\/td><\/tr><tr><td><strong>\\w<\/strong><\/td><td>Das aktuelle Arbeitsverzeichnis<\/td><\/tr><tr><td><strong>\\W<\/strong><\/td><td>Nur der letzte Teil des aktuellen Arbeitsverzeichnisses<\/td><\/tr><tr><td><strong>\\!<\/strong><\/td><td>Die aktuelle History-Nummer<\/td><\/tr><tr><td><strong>\\#<\/strong><\/td><td>Die Aktuelle Befehls-Nummer<\/td><\/tr><tr><td><strong>\\$<\/strong><\/td><td>Wenn root eine &#8222;#&#8220;, sonst ein&#8220;$&#8220;<\/td><\/tr><tr><td><strong>\\\\<\/strong><\/td><td>Der Backslash<\/td><\/tr><tr><td><strong>\\nnn<\/strong><\/td><td>Das Zeichen entsprechend der oktalen Zahl nnn<\/td><\/tr><tr><td><strong>\\[<\/strong><\/td><td>Der Beginn einer Sequenz von nicht-darstellbaren Zeichen<\/td><\/tr><tr><td><strong>\\]<\/strong><\/td><td>Das Ende einer Sequenz von nicht-darstellbaren Zeichen<\/td><\/tr><tr><td><strong>\\@<\/strong><\/td><td>Die Uhrzeit im 12h am\/pm Format<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nun wollen wir uns beispielsweise den\u00a0<strong>Nutzernamen<\/strong>\u00a0und nach dem &#8222;<strong>@<\/strong>&#8220; die Uhrzeit und das\u00a0<strong>aktuelle Verzeichnis<\/strong>\u00a0anzeigen lassen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS1='\\u@ \\t \\w: \\$'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ergibt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>robertg@ 09:01:08 ~: $<\/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\/prompt-5-1024x576.jpg\" alt=\"\" class=\"wp-image-363\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-5-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-5-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-5-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-5-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-5.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Farben am Terminal<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die farbliche Gestaltung ist etwas komplizierter &#8211; wir finden erst einmal die\u00a0<a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/02\/farbtabelle-fuer-das-linux-terminal\/\" data-type=\"post\" data-id=\"355\" target=\"_blank\" rel=\"noreferrer noopener\">Farbtabelle der Shell<\/a>\u00a0auf der Linux Bibel (<em>Mittelklick auf den Link<\/em>). Nehmen wir wieder den oberen Code &#8211; also:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS1='\\u@ \\t \\w: \\$'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ich m\u00f6chte beispielsweise den Nutzernamen Gr\u00fcn darstellen &#8211; also nutze ich den Code &#8222;<strong><code>\\[\\033[0;32m\\]<\/code><\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS1='\\&#91;\\033&#91;0;32m\\]\\u\\&#91;\\033&#91;0m\\]@ \\t \\w: \\$'<\/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\/prompt-6-1024x576.jpg\" alt=\"\" class=\"wp-image-364\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-6-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-6-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-6-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-6-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-6.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wichtig ist der Code &#8222;<code>\\[\\033[0m\\]<\/code>&#8220; &#8211; mit diesem wird die Farbe zur\u00fcckgesetzt, ansonsten w\u00fcrde der komplette weitere Code in Gr\u00fcn sein bis man wieder eine andere Farbe angibt. Nun m\u00f6chte ich den Nutzernamen noch Grau hinterlegen &#8211; der Code f\u00fcr die Hintergrundfarbe Grau &#8222;<strong><code>\\[\\033[47;XXm\\]<\/code><\/strong>&#8220; &#8211; statt &#8222;<code>XX<\/code>&#8220; geben Sie einfach die Vordergrundfarbe &#8211; in diesem Fall wie oben &#8222;<code>0;32<\/code>&#8220; f\u00fcr Gr\u00fcn an, ob Sie Vordergrundfarbe oder Hintergrundfarbe zuerst angeben ist egal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS1='\\&#91;\\033&#91;0;32;47m\\]\\u\\&#91;\\033&#91;0m\\]@ \\t \\w: \\$'<\/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\/prompt-7-1024x576.jpg\" alt=\"\" class=\"wp-image-365\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-7-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-7-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-7-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-7-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-7.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So k\u00f6nnen Sie nun spielen wie Sie wollen &#8211; etwa:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS1='\\&#91;\\033&#91;0;32;47m\\]\\u\\&#91;\\033&#91;0m\\]@ \\&#91;\\033&#91;0;35;46m\\] \\&#91;\\033&#91;1;36;41m\\]\\t\\&#91;\\033&#91;0m\\] \\w: \\$'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ergibt:<\/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\/prompt-8-1024x576.jpg\" alt=\"\" class=\"wp-image-367\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-8-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-8-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-8-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-8-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/prompt-8.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Kleiner Tipp&nbsp;&#8211; einen Bash-Prompt-Generator f\u00fcr den Prompt gibt es&nbsp;<a href=\"https:\/\/bashrcgenerator.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">hier<\/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=\"357\" 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=\"357\" 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\">1<\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Nicht jedem gef\u00e4llt der Prompt der Bash am\u00a0Terminal\u00a0unter Linux, je nach Distribution ist dieser anders gestaltet &#8211; hier einmal unter Debian Sid: Zu Beginn sehen Sie hier den\u00a0Nutzernamen\u00a0des aktuell angemeldeten Nutzers, nach dem &#8222;@&#8220; zeigt sich der\u00a0Name des Rechners, es endet mit dem\u00a0Verzeichnis, in dem man sich auf dem Terminal aktuell befindet &#8211; in diesem [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":367,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,7,6],"class_list":["post-357","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\/357","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=357"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":368,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/357\/revisions\/368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/367"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}