3 tips to easily hide files and folders on macOS

WBOY
Release: 2024-03-26 12:11:20
forward
1104 people have browsed it

3 招教你轻松在 macOS 上隐藏文件和文件夹

On macOS, hiding files and folders is not as straightforward as it is on Windows. If you want to protect sensitive files, there are several ways to hide them on your Mac.

3 Ways to Hide macOS Files and Folders

Method 1: Use the "Terminal" command

1Open the "Terminal" application.

2Execute the following command:

  • Hide files or folders:
chflags hidden [路径]
Copy after login
  • Unhide a file or folder:
chflags nohidden [路径]
Copy after login

Hide or unhide by command

You can drag files or folders directly to the "Terminal" window to automatically fill the path. Or, hold down the ⌥Option key and right-click the file or folder to quickly copy the path.

Method 2: Modify the file name (add a dot at the beginning of the file name)

1Press ⌘Command ⇧Shift . shortcut key to display all hidden files and folders.

2 In the Finder or on the desktop, select the file or folder you want to hide.

3 Press Enter and add a dot . in front of the file name to modify the file name (delete . to unhide it).

4 Press Enter to confirm the modification, and select "Use Point" in the pop-up window to confirm.

Add dot . before the file name to hide it

5 Press ⌘Command ⇧Shift . shortcut key again to cancel showing hidden files.

Method 3: Move to the hidden Library folder

Every macOS user account has a hidden Library folder where application caches and other data are stored. You can move files or folders here to hide them.

1 Press ⌘Command ⇧Shift G shortcut key to open the "Go to Folder" dialog box.

2Enter ~/Library/ and press Enter.

Access ~/Library/ folder

3Move the files or folders you want to hide into the Library folder.

The above is the detailed content of 3 tips to easily hide files and folders on macOS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:mryunwei.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template