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。

加密文件夹

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

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。

statement:All articles on this site,If there is no special instructions or markings,All are originally published by this site。any person or organization,Without the consent of this website,Reproduction prohibited、Misappropriate、collection、Publish content from this site to any website、Books and other media platforms。If the content on this site infringes upon the legitimate rights and interests of the original author,You can contact us for processing。