How to hide in macOS、Encrypt a file or folder
Hide a file or folder
Create a hidden folder using Terminal:
1. Create new hidden folder: Open Terminal,Enter command mkdir file location/.filename,For example mkdir desktop/.MacW,Press Enter key to execute。This creates a file called .McW hidden folder。
2. Show hidden files: Press the shortcut key Shift+Command+. Can show hidden files and folders in Finder。
Modify file hidden attributes:
1. Enter in the terminal 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
Create an encrypted disk image using Disk Utility:
1.Open Disk Utility in Launchpad's other folder。
2. Click on the menu bar 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,and click store。
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。

