{"id":7187,"date":"2023-09-19T23:41:17","date_gmt":"2023-09-19T21:41:17","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=7187"},"modified":"2023-09-19T23:42:25","modified_gmt":"2023-09-19T21:42:25","slug":"dateien-und-verzeichnisse-ohne-umbenennen-unter-linux-verstecken","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/19\/dateien-und-verzeichnisse-ohne-umbenennen-unter-linux-verstecken\/","title":{"rendered":"Dateien und Verzeichnisse ohne Umbenennen unter Linux verstecken"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Unter Linux werden Dateien und Verzeichnisse versteckt, indem man diesen einen Punkt vorsetzt. So werden unter Linux etwa Dateien und Verzeichnisse zur Konfiguration unsichtbar gemacht &#8211; dies bewahrt die \u00dcbersicht und sch\u00fctzt diese vor unabsichtlichem L\u00f6schen:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden.jpg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1024x576.jpg\" alt=\"\" class=\"wp-image-7189\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Um das Verzeichnis &#8222;<em>Dokumente<\/em>&#8220; zu verstecken, w\u00fcrde ich dem Verzeichnisnamen ganz einfach einen Punkt voran setzen &#8211; also &#8222;<em>.Dokumente<\/em>&#8222;. Dasselbe mit der Datei &#8222;<strong>Bild.jpg<\/strong>&#8220; &#8211; die Datei &#8222;<strong>.Bild.jpg<\/strong>&#8220; wird erst durch die Tastenkombination &#8222;<strong>Strg+h<\/strong>&#8220; sichtbar.<br><br>Dies ist nat\u00fcrlich n\u00fctzlich, man kann das Verzeichnis oder die Datei nicht unabsichtlich l\u00f6schen. Problematisch wird dies jedoch, wenn man etwa das Verzeichnis mit der Konfiguration einer Software versteckt &#8211; kann man der Software das versteckte Verzeichnis nicht beibringen, findet diese ihre Konfiguration nicht mehr.<br><br>Ein typisches Beispiel f\u00fcr so ein uns\u00e4gliches Verzeichnis ist &#8222;<em>Snap<\/em>&#8220; f\u00fcr die Konfiguration der genutzten <a rel=\"noreferrer noopener\" href=\"https:\/\/www.linux-bibel-oesterreich.at\/viewtopic.php?t=12\" target=\"_blank\">Snap-Software<\/a>. L\u00f6scht man das Verzeichnis, steht man aber ebenfalls vor der Misere. Und nat\u00fcrlich kann man unter Linux auch Dateien und Verzeichnisse verstecken, ohne solche umzubenennen &#8211; also einen Punkt davorzusetzen.<br><br>Erstellen Sie im Verzeichnis, in dem Sie Dateien oder und Dateien verstecken wollen, eine Textdatei namens &#8222;<strong>.hidden<\/strong>&#8222;. Diese \u00f6ffnen Sie jetzt mit einem Texteditor und schreiben die Verzeichnisse und Dateien hinein. Etwa das Verzeichnis &#8222;<em>text<\/em>&#8220; und die Datei &#8222;<strong>text.txt<\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>text\ntext.txt<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1.jpg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1-1024x576.jpg\" alt=\"\" class=\"wp-image-7190\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Speichern Sie die Datei und schlie\u00dfen und \u00f6ffnen den Dateimanager wieder, das Verzeichnis und die Datei sind nicht sichtbar:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-2.jpg\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-2-1024x576.jpg\" alt=\"\" class=\"wp-image-7191\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-2-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-2-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-2-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-2-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-2-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Obwohl f\u00fcr das Auge nicht sichtbar:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-3.jpg\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-3-1024x576.jpg\" alt=\"\" class=\"wp-image-7192\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-3-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-3-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-3-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-3-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-3-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/hidden-3.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Die Anwendungen, in diesem Fall etwa Snap-Software, finden diese Verzeichnisse trotzdem. Sie wurden ja nicht umbenannt. Entfernen Sie die Eintr\u00e4ge aus der Datei &#8222;<strong>.hidden<\/strong>&#8222;, \u00f6der l\u00f6schen diese Datei gleich, sind die dadurch unsichtbar gemachten Dateien und Verzeichnisse wieder sichtbar.<br><strong><br>Wichtig!<\/strong><br>Es lassen sich nur Dateien und Verzeichnisse unsichtbar machen, die im selben Verzeichnis wie die &#8222;<strong>.hidden<\/strong>&#8222;-Datei liegen &#8211; Sie k\u00f6nnen keinen Pfad angeben. Sie k\u00f6nnen jedoch in jedem beliebigen Verzeichnis eine solche Datei erstellen. In jeder Zeile der Datei darf nur ein Verzeichnis oder eine Datei angegeben werden &#8211; also pro Zeile ein Eintrag. Vor dem Datei- oder Verzeichnisnamen dasf kein Leerzeichen stehen, dazwischen nat\u00fcrlich schon.<br><br><strong>Nachtrag<\/strong> Di 2. Aug 2022, 09:58<br>Ich habe gerade die Information bekommen &#8211; die Geschichte funktioniert nicht mittels Thunar unter XFCE.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Erstver\u00f6ffentlichung: So 31. Jul 2022, 21:28<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unter Linux werden Dateien und Verzeichnisse versteckt, indem man diesen einen Punkt vorsetzt. So werden unter Linux etwa Dateien und Verzeichnisse zur Konfiguration unsichtbar gemacht &#8211; dies bewahrt die \u00dcbersicht und sch\u00fctzt diese vor unabsichtlichem L\u00f6schen: Um das Verzeichnis &#8222;Dokumente&#8220; zu verstecken, w\u00fcrde ich dem Verzeichnisnamen ganz einfach einen Punkt voran setzen &#8211; also &#8222;.Dokumente&#8222;. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,17,102],"tags":[],"class_list":["post-7187","post","type-post","status-publish","format-standard","hentry","category-sicherheit","category-system","category-tipps-system"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/7187","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=7187"}],"version-history":[{"count":4,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/7187\/revisions"}],"predecessor-version":[{"id":7195,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/7187\/revisions\/7195"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=7187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=7187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=7187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}