{"id":9340,"date":"2019-09-13T15:49:15","date_gmt":"2019-09-13T15:49:15","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=9340"},"modified":"2019-09-13T15:54:37","modified_gmt":"2019-09-13T15:54:37","slug":"hide-files-folders-without-renaming-in-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2019\/09\/hide-files-folders-without-renaming-in-ubuntu\/","title":{"rendered":"How to Hide Files \/ Folders (Without Renaming) in Ubuntu 18.04"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2016\/03\/classic-gnome-icon.png\" alt=\"gnome shell\" width=\"245\" height=\"250\" class=\"aligncenter size-full wp-image-5741\" \/><\/p>\n<p>This quick tip shows beginners how to hide files or folders, without renaming them, in Ubuntu&#8217;s default Nautilus file browser.<\/p>\n<p>In Ubuntu Linux, a file (or folder) with a name starts by a dot (<code>.<\/code>) is considered a hidden file. Filename ends with a tilde (<code>~<\/code>) is considered backup file which is also hidden.<\/p>\n<p>You can press <b>Ctrl+H<\/b> on keyboard to show or hide hidden files \/ folders in file browser.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hiddenfilefolders.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hiddenfilefolders-600x323.jpg\" alt=\"\" width=\"600\" height=\"323\" class=\"aligncenter size-large wp-image-9341\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hiddenfilefolders-600x323.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hiddenfilefolders-450x242.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hiddenfilefolders-768x413.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hiddenfilefolders.jpg 932w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>To hide files and\/or folders<\/b>, without renaming them by prefixing dots (.) or suffixing tildes (~), you can use an extension called <code>nautilus-hide<\/code>. <\/p>\n<p><i>NOTE following steps works for all current Ubuntu releases, though the title says for Ubuntu 18.04.<\/i><\/p>\n<p><b>1.)<\/b> Open terminal either by searching for &#8220;terminal&#8221; from application menu or by pressing Ctrl+Alt+T on keyboard. <\/p>\n<p>When terminal opens, run command to install the extension:<\/p>\n<pre style=\"border:None;\">sudo apt install nautilus-hide<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/apt-nautilius-hide-600x137.jpg\" alt=\"\" width=\"600\" height=\"137\" class=\"aligncenter size-large wp-image-9342\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/apt-nautilius-hide-600x137.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/apt-nautilius-hide-450x103.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/apt-nautilius-hide.jpg 722w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>2.)<\/b> Then restart Nautilus either via reboot or by running command:<\/p>\n<pre style=\"border:None;\">nautilus -q<\/pre>\n<p>Finally in Nautilus file browser, select <b>&#8216;Hide Files&#8217;<\/b> in files&#8217; context menu (right-click menu).<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hide-files.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hide-files-600x344.jpg\" alt=\"\" width=\"600\" height=\"344\" class=\"aligncenter size-large wp-image-9343\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hide-files-600x344.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hide-files-450x258.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hide-files-768x441.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/09\/hide-files.jpg 903w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>To un-hide them, press <b>Ctrl+H<\/b> to show hidden files, then either select &#8220;Unhide Files&#8221; in hidden files&#8217; context menu or remove the <code>.hidden<\/code> file.<\/p>\n<p>NOTE: The extension works by adding file or folder names, that you choose to hide, into <code>.hidden<\/code> file (auto-create if not exist). Nautilus reads that file to hide the listed files the next time you open or refresh the folder.<\/p>","protected":false},"excerpt":{"rendered":"<p>This quick tip shows beginners how to hide files or folders, without renaming them, in Ubuntu&#8217;s default Nautilus file browser. In Ubuntu Linux, a file (or folder) with a name starts by a dot (.) is considered a hidden file. Filename ends with a tilde (~) is considered backup file which is also hidden. You [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1790,1791],"class_list":["post-9340","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-hide-file-folder","tag-hide-file-without-rename"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/9340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=9340"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/9340\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=9340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=9340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=9340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}