个人工具

UbuntuHelp:UbuntuLTSP/HideFilesystemInNautilus

来自Ubuntu中文

Wikibot讨论 | 贡献2008年10月19日 (日) 17:42的版本 (新页面: {{From|https://help.ubuntu.com/community/UbuntuLTSP/HideFilesystemInNautilus}} {{Languages|UbuntuHelp:UbuntuLTSP/HideFilesystemInNautilus}} '''This wiki page is specific to Ubuntu Version...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

This wiki page is specific to Ubuntu Version(s): 8.04


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