Thursday, April 18, 2024
 Popular · Latest · Hot · Upcoming
22
rated 0 times [  22] [ 0]  / answers: 1 / hits: 9312  / 1 Year ago, mon, december 5, 2022, 3:32:52

I want to hide, most of the folders in root (/) using Nautilus. Probably the only folders in / I want shown are /home and /tmp.



In addition to hiding folders, I also want to hide two files: initrd.img and initrd.img.old.



I find such a setup to be pro-noob, and looks a lot slicker too. How can I hide those folders and files?


More From » nautilus

 Answers
3

Tested under Nautilus 3.4.2 on Ubuntu 12.04/12.10 (but works in almost all scenarios)


Open gnome-terminal (Ctrl+Alt+T).


Type ls -1 /.


Copy the name(s) of the folder(s) you want hidden.


Press Alt+F2, then type in gedit.


Paste all the names you want hidden like so:



hidden



Image excerpted from Another Way to Hide Files Folders in Ubuntu by Meilin


Save the file (Ctrl+S) in the directory / with the name .hidden (no asterisk, as seen in the image above).


Refresh the page, and they are gone.



hidden-folders



Image from How to hide files and folders - EuroBytes


If you want them unhidden later...


To unhide the folders, you can either:



  • remove there names from the .hidden file, or

  • just press Ctrl+H to view all hidden files and folders.


Reference:



[#38058] Monday, December 5, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ideobedi

Total Points: 121
Total Questions: 108
Total Answers: 107

Location: United States Minor Outlying Island
Member since Sat, May 28, 2022
2 Years ago
;