A 隐 file or folder is just a normal file or folder with a “hidden”选项集。操作系统默认情况下会隐藏这些文件,因此,如果您与他人共享计算机,则可以使用此技巧来隐藏某些文件。
这个技巧绝非万无一失。它’使启用“show 隐 files” option 和 find a 隐 file. Operating systems hide many system files by default —只是为了让他们摆脱困境。
在Windows上隐藏文件或文件夹
要在Windows上隐藏文件或文件夹,请打开Windows资源管理器或“文件资源管理器”窗口,然后找到要隐藏的文件或文件夹。右键单击它,然后选择属性。
Enable the Hidden checkbox on the General pane of the Properties window. Click OK or Apply 和 your file or folder will be 隐.
有关: 在Windows中创建超级隐藏文件夹,而无需任何其他软件
视窗 also has a second type of 隐 file or folder, known as a “system file.” There’s是启用查看系统文件和文件夹的单独选项。您可以通过将其标记为系统文件来制作超隐藏文件—人们将不得不竭尽全力来禁用“隐藏受保护的操作系统文件(推荐)”选择它。您可以’t通过图形界面执行此操作,因此请遵循 我们在Windows上将文件和文件夹标记为系统文件的指南 如果您想这样做。
在Windows上查看隐藏的文件和文件夹
有关: 如何在Windows 7、8或10中显示隐藏的文件和文件夹
至 view a 隐 file or folder on 视窗 8 or 10, click the View tab on the ribbon at the top of the File 探索 r window 和 enable the Hidden items checkbox under Show/hide. Hidden files 和 folders will have partially transparent icons, so you can easily tell which are 隐 和 which are normally visible.
在Windows 7上,单击工具栏上的整理按钮,然后选择文件夹和搜索选项。
Click over to the View tab 和 select the Show 隐 files, folders, 和 drives option. Click OK or Apply to save your changes.
在Linux上隐藏文件或文件夹
的Linux 隐藏名称开头带有句点的文件和文件夹。要隐藏文件或文件夹,只需将其重命名并在其名称的开头放置一个句点即可。例如,让’s说您要隐藏一个名为Secrets的文件夹。您’d将其重命名为.Secrets,并在句号前面。默认情况下,文件管理器和其他实用程序会将其隐藏。
在Linux上查看隐藏的文件和文件夹
有关: 您可能没有注意到的7个Ubuntu File Manager功能
点击“Show 隐” option in your file manager of choice to view 隐 files 和 folders on 的Linux . For example, in the 在Ubuntu上使用的Nautilus文件管理器 和其他基于GNOME的 的Linux 发行版 ,单击查看菜单,然后选择显示隐藏文件。
该选项将只显示文件名称开头带有句点的文件夹。
You can view 隐 files in an Open or Save dialog, too. On Ubuntu 和其他基于GNOME的 的Linux 发行版 , just right-click in the list of files 和 select the Show Hidden Files option.
在Mac OS X上隐藏文件或文件夹
苹果电脑 也隐藏以。开头的文件和文件夹。字符。那里’s also a special “hidden”Finder将遵守的属性。在Mac上,隐藏文件或文件夹要困难一些。尝试重命名文件或文件夹,使其以句点开头,Finder会告诉您“这些命名为系统保留。” There’s also no way to quickly toggle the 隐 attribute in the Finder’的图形界面。
You can quickly mark a file or folder as 隐 with the chflags command in the terminal. First, open a Terminal window by 按Command +空格键,在Spotlight搜索对话框中输入Terminal,然后按Enter。
在终端中输入以下命令,但不要’t press Enter:
chflags 隐
请务必在后面输入空格“hidden.”
接下来,找到要隐藏在Finder中的文件或文件夹。将其拖放到终端。文件或文件夹’的确切路径将出现在终端中。
Press Enter to run the command. This will mark the file as 隐.
将来使用同一命令取消隐藏文件或文件夹,方法是:“chflags nohidden” instead of “chflags 隐”.
在Mac OS X上查看隐藏的文件和文件夹
苹果电脑 OS X has a secret keyboard shortcut to view 隐 folders 和 files in any program’■打开或保存对话框。只需按Command + Shift +句点。请注意,这仅在“打开”和“保存”对话框中有效— not in the Finder itself. However, this may be the most convenient way to quickly access your 隐 files when you need them.
Finder没有’没有用于查看隐藏文件和文件夹的图形选项。相反,你’必须使用命令。首先,以与上述相同的方式打开“终端”窗口。在Mac OS X 10.9 Mavericks上运行以下命令。这些命令会将Finder设置为始终显示隐藏文件并重新启动Finder,以使您的更改生效。在终端中键入每个命令,然后在每个命令之后按Enter。
默认写com.apple.finder AppleShowAllFiles TRUE
Killall搜寻器
(在Mavericks之前的旧版Mac OS X上—10.8山狮。 10.7狮子和10.6雪豹—使用与上述相同的命令,但进行更改“com.apple.finder” to “com.apple.Finder” —F必须在这些操作系统上大写。)
The Finder will show 隐 files. They’ll be partially transparent so you can see which files are 隐 和 which are normally visible.
要再次隐藏文件,请在终端窗口中运行以下命令:
默认写com.apple.finder AppleShowAllFiles为FALSE
Killall搜寻器
(在旧版Mac OS X上,请记住使用“com.apple.Finder” instead).
为了真正防止他人访问您的秘密文件和文件夹,您可以’ll want to 加密它们 instead. Files 和 folders 隐 in the above ways are accessible with a few clicks — they’re 隐 from view, but easy to find if someone goes looking for them. Encryption ensures your files 和 folders can’除非有人拥有您的加密密钥,否则无法访问。