How to hide files in MAC

Time:2019-11-4

How can MAC hide files? We know that it’s easy to hide files in Windows system. Right click and select “properties” and select “hide”. Then how can we hide files in MAC system?

Hiding is just a way to protect files. It just makes files invisible under certain conditions, but there is actually a more powerful way than hiding, which is encryption. Maybe this is the way Apple wants to give you. Let’s take a look at some specific ways to hide files.

  I. hide files with resource library, program and installation package

If you just want files to be hard to find, there are several ways:

1. Put the file in the directory of ~ / resource base:

After the lion system, the system uses the “resource base” folder under the user’s home directory as a hidden folder by default, so you can create a folder in this directory to bury your secrets, or even put it in the “~ / resource base / Application Support /” and then create a folder to place your secrets.

Click the desktop or finder, then click the menu “go”, press and hold the option and click “resource pool” to access the “resource pool” folder.

mac如何隐藏文件 苹果系统隐藏文件方法介绍

2. Put the file in the program:

Mac programs are actually folders with the extension of. App, so right click the program and select “show package content” to see the program files and resource files. Now you can put the data here, which is also a hidden way.

Of course, you can also create a new folder, and then name it as an. App file, such as Microsoft Office 2011.app. Right click the file and select “display package content” to put the data in the app, or directly change the name of your secret folder to Microsoft Office 2011.app. To view a file, just right-click on the app and select “show package content”.

mac如何隐藏文件 苹果系统隐藏文件方法介绍

  II. Making documents invisible

This is the most common way and the most practical way. People always think that if you want to hide a file or folder on a Mac, there are several ways:

1. Create a new hidden folder

Enter MKDIR. Folder name in the terminal

For example, if you want to create a new hidden folder in the document directory, just open the terminal and enter MKDIR documents /. ABC to create a. ABC hidden folder in the document directory. (see how to show MAC hidden files here.)

mac如何隐藏文件 苹果系统隐藏文件方法介绍

2. Change a folder into a hidden folder

Enter MV file. File or MV folder. Folder in the terminal to hide. The most direct way is to input MV in the terminal, then drag the file or folder to the terminal window, then input a space and then drag the file here, and then press return to hide the file. This is the way of adding. Before the name to hide the file on MAC, but you can’t directly add. To a file in finder on MAC, it must be implemented in the terminal.

  3. Modify the hidden attribute of the file

mac如何隐藏文件 苹果系统隐藏文件方法介绍

Enter chflags hidden in the terminal, drag the file here, and press return to hide the file.

mac如何隐藏文件 苹果系统隐藏文件方法介绍

Chflags is a command to change the hidden attribute of a file. It means change flags, which is the flag to modify a file. Hidden is hidden, so chflags hidden is hidden. If you want to unhide the file, just type “chflags nohidden file”.

The above is the summary of hidden file methods of Apple system brought by Xiaobian. I hope it can help you. Please continue to pay attention to developepaer.

Related reading:

How can MAC view hidden folders? The method and command of displaying hidden folder in MAC

How to quickly display / restore hidden files in Apple Mac OS X system