{"id":139,"date":"2023-07-21T14:04:51","date_gmt":"2023-07-21T18:04:51","guid":{"rendered":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/?p=139"},"modified":"2024-10-11T09:33:42","modified_gmt":"2024-10-11T13:33:42","slug":"weird-folder-names-in-raspberry-pi-file-list","status":"publish","type":"post","link":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/?p=139","title":{"rendered":"Weird folder names in Raspberry Pi file list"},"content":{"rendered":"\n<p>raspi occasionally creates weird folders under \/root with incomprehensible names:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">drwx------ 3 root root 4.0K Jul 7 2022 ''$'\\033''[?25h'$'\\033''[?7h'\/ <a href=\"https:\/\/matrix.to\/#\/!IWCtZARYBkDcOIuvwH:matrix.org\/$QtdiURyezVHY7sbKSlSR-ITFmuhJKCWwtt-Eg3v7jZE?via=matrix.org\"><\/a><\/pre>\n\n\n\n<p>You can&#8217;t easily delete the folder with rm -rf.<\/p>\n\n\n\n<p>First, you need to find the inode to the folder:<\/p>\n\n\n\n<div class=\"wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-8cf370e7 wp-block-group-is-layout-flex\">\n<pre class=\"wp-block-preformatted\"># ls -ihalF<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">total 80K<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">15     drwx------ 11 root root 4.0K Apr 18 10:42 .\/<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">2      drwxr-xr-x 18 root root 4.0K Jul 21 08:34 ..\/<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">524545<\/mark> drwx------ 3 root root 4.0K Jul 7 2022 ''$'\\033''[?25h'$'\\033''[?7h'\/<\/pre>\n<\/div>\n\n\n\n<p>So in this case the inode is <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">524545<\/mark><\/p>\n\n\n\n<p>Use &#8216;find&#8217; to get rid of it:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">find . -maxdepth 1 -type d -inum 524545 -exec rm -rf {} \\;<\/pre>\n\n\n\n<p>Folder is now deleted<\/p>\n","protected":false},"excerpt":{"rendered":"<p>raspi occasionally creates weird folders under \/root with incomprehensible names: drwx&#8212;&#8212; 3 root root 4.0K Jul 7 2022 &#8221;$&#8217;\\033&#8221;[?25h&#8217;$&#8217;\\033&#8221;[?7h&#8217;\/ You can&#8217;t easily delete the folder with rm -rf. First, you need to find the inode to the folder: # ls -ihalF total 80K 15 drwx&#8212;&#8212; 11 root root 4.0K Apr 18 10:42 .\/ 2 drwxr-xr-x [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-139","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=139"}],"version-history":[{"count":1,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":140,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/139\/revisions\/140"}],"wp:attachment":[{"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/triosdevelopers.com\/J.Smith\/rjeffsmith.ca\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}