This page is specific to Ubuntu versions 8.04 and Works in 8.10 Intrepid Ibex and in 10.10

If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.


This page is dedicated to hiding parts of the filesystem from within Nautilus. It is good to do this in environments such as schools, where limited access by normal users to the viewing of underlying operating system files/directories is desired. Please note that this technique is specific to Nautilus - other methods of gaining access to the filesystem, such as through OpenOffice "Open/Save" dialogs, the terminal, and other programs that do not use Nautilus to browse the filesystem are not affected (yet).

Doing this is easily accomplished by creating (as root) a file called .hidden in whichever directory you want to hide files/subdirectories in, which contains, one line at a time, a list of each file and/or directory you want to hide.

For example, I have created a file called /.hidden:

cd /

sudo vim .hidden

/.hidden:

bin
boot
cdrom
dev
etc
initrd
lib
lost+found
media
mnt
opt
proc
root
sbin
srv
sys
tmp
usr
var
initrd.img
initrd.img.old
vmlinuz
vmlinuz.old
lib32

Reference URLs: https://wiki.ubuntu.com/HideFilesystemStructure

UbuntuLTSP/HideFilesystemInNautilus (last edited 2011-05-30 10:59:41 by music-christophe-pochon)