{"id":1267,"date":"2024-05-01T08:00:00","date_gmt":"2024-05-01T06:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=1267"},"modified":"2025-06-23T09:27:56","modified_gmt":"2025-06-23T07:27:56","slug":"shell-grundlagen-1","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2024\/05\/01\/shell-grundlagen-1\/","title":{"rendered":"Shell Grundlagen 1"},"content":{"rendered":"\n<p>Dieser Artikel besch\u00e4ftigt sich mit den Grundlagen zur Shell. Es werden auch schon die Grundlagen f\u00fcr eine zuk\u00fcnftige Artikelserie zum Thema Shellskript Programmierung gelegt\u2026<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>Welche Shell wird aktuell genutzt?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>echo $0<\/li>\n<\/ul>\n\n\n\n<p><strong>Die Datei etc\/shells:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>cat \/etc\/shells<\/li>\n<\/ul>\n\n\n\n<p><strong>Shell im Terminal wechseln<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>sh<\/li>\n\n\n\n<li>dash<\/li>\n<\/ul>\n\n\n\n<p>Shell verlassen ist per exit Kommando m\u00f6glich.<\/p>\n\n\n\n<p><strong>Kommando intern oder extern?<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>type KOMMANDO<\/li>\n<\/ul>\n\n\n\n<p>Beispiele:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>type echo<\/li>\n\n\n\n<li>type cd<\/li>\n\n\n\n<li>type rm<\/li>\n<\/ul>\n\n\n\n<p><strong>Hallo Terminal \u2013 Der echo-Befehl<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>echo Hallo Terminal<\/li>\n<\/ul>\n\n\n\n<p><strong>Der date-Befehl:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>date<\/li>\n<\/ul>\n\n\n\n<p><strong>Der help-Befehl:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>help type<\/li>\n<\/ul>\n\n\n\n<p><strong>Der touch-Befehl:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>touch Neue Datei<\/li>\n<\/ul>\n\n\n\n<p>Mit diesem Terminalbefehl werden zwei Dateien erstellt. Sicher nicht das was man erreichen wollte. Die Datei mit dem Namen \u201cNeue Datei\u201c wird mit dem folgenden Befehl erstellt\u2026<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>touch &#8222;Neue Datei&#8220;<\/li>\n<\/ul>\n\n\n\n<p><strong>Das Maskierungszeichen:<\/strong><\/p>\n\n\n\n<p>Der R\u00fcckstrich (\\) oder die Anf\u00fchrungszeichen werden als Maskierungszeichen genutzt.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>touch Urlaub\\[1].txt<\/li>\n<\/ul>\n\n\n\n<p>In diesem Beispiel wird mit dem Maskierungszeichen die eckige Klammerung maskiert.<\/p>\n\n\n\n<p>Weitere interessante Webartikel zum Thema Linux gibt es auf der <a href=\"https:\/\/www.fuhselab.de\/index.php\/category\/linux\/\">Fuhselab<\/a> Webseite und in der <a href=\"https:\/\/www.fuhselab.de\/index.php\/2023\/08\/24\/fuhselab-artikeluebersicht\/\">Artikel\u00fcbersicht 2022<\/a> und der <a href=\"https:\/\/www.fuhselab.de\/index.php\/2023\/12\/19\/artikeluebersicht-2023\/\">Artikel\u00fcbersicht 2023<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dieser Artikel besch\u00e4ftigt sich mit den Grundlagen zur Shell. Es werden auch schon die Grundlagen f\u00fcr eine zuk\u00fcnftige Artikelserie zum Thema Shellskript Programmierung gelegt\u2026<\/p>\n","protected":false},"author":1,"featured_media":791,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[21],"class_list":["post-1267","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux-gruppe-peine"],"_links":{"self":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/1267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/comments?post=1267"}],"version-history":[{"count":4,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/1267\/revisions"}],"predecessor-version":[{"id":2778,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/1267\/revisions\/2778"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media\/791"}],"wp:attachment":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media?parent=1267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=1267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=1267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}