How to hide and encrypt files or folders in MacOS

How to hide in macOS、加密文件或文件夹

隐藏文件或文件夹

使用终端创建隐藏文件夹

1. Create new hidden folder: Open Terminal,Enter command mkdir 文件位置/.文件名称,For example mkdir desktop/.MacW,Press Enter key to execute。这样就创建了一个名为 .MacW 的隐藏文件夹

2. Show hidden files: Press the shortcut key Shift+Command+. Can show hidden files and folders in Finder。

Modify file hidden attributes:

1. 在终端中输入 chflags hidden ,Then drag in the files or folders you want to hide,Press Enter key to execute。This allows you to set a file or folder to a hidden state。

Encrypted folder

使用磁盘工具创建加密磁盘映像

1.Open Disk Utility in Launchpad's other folder。

2. 点击菜单栏中的 document > New > image from folder,Or use the shortcut key Shift + Command + N。

3.Double-click to select the folder to encrypt,Then select the encryption method in the encryption options and enter the password。Make sure the image format is set to read/write,并点击 储存

4.When accessing an encrypted disk,The system will ask for a password。for safety reasons,Uncheck "Remember passwords in my keychain"。

These methods can help you hide and encrypt files or folders on Mac,Ensure data security and privacy protection。

My WeChat account
Scan on WeChat
weinxin
My WeChat account
WeChat ID has been copied
My WeChat public account
Scan on WeChat
weinxin
My official account
Official account has been copied
 
  • By Published on2026January 22 11:18:53
  • Please be sure to keep the link to this article when reprinting it:https://www.hqcj.com.cn/2026/01/22/424.html
anonymous

Comment

Anonymous
Decide

Slide puzzle verification.