How to hide, display files and folders on macOS
In order to limit secret directories, individuals are opened, we can hide folders or any other data. On macOS, if you want to hide the folder, or the user file must use the third-party application, Command One, or use the Terminal command. In the article below, we will guide you how to hide and display the folder and data on macOS.
1. How to re-display hidden files on macOS:
Step 1:
First of all, we open the Terminal application on macOS. You can follow the LaundPad> Other> Terminal link , or enter the Terminal keyword into the Spotlight Search search box.
Step 2:
Then enter the following 2 lines of code and end each line with Return.
- defaults write com.apple.finder AppleShowAllFiles TRUE
- killall Finder
Or use the 2nd set of commands below.
- defaults write com.apple.finder AppleShowAllFiles YES
- killall Finder
If the second command line group does not work, we need to start the Finder. Click and hold on the Option + Control key combination, then click the Finder icon in the Dock bar and then press Relaunch.
Step 3:
After entering the above commands, exit the Terminal window. We open the Finder and then see the previously hidden files.
2. How to hide macOS files via Terminal:
Step 1:
We also need to open Terminal to enter commands for hiding folders and files on the system. Then choose to enter 1 of the 2 command lines below into the Terminal window.
- defaults write com.apple.finder AppleShowAllFiles NO
- killall Finder
Or use the second command group below.
- defaults write com.apple.finder AppleShowAllFiles FALSE
- killall Finder
Step 2:
After that, the folder you want to hide does not appear.
3. How to hide a separate file or folder:
Step 1:
To be able to hide a file or folder, open the Terminal application and enter the command line below.
- chflags hidden
Then open the file you want to hide on macOS, then drag and drop the file after the hidden chflags command . Note to the user , after the hidden, there should be a space to drag and drop the file you want to hide.
Step 2:
Soon, you will see the folder containing the hidden file that appears on the Terminal interface. Press Return to run this command. If you still don't see the hidden folder, continue to click killall Finder in Terminal and press Return.
4. Reveal separate files and folders:
How to display hidden folders or files is done the same way as when hiding them. You also need to open Terminal and enter the command below.
- chflags nohidden
Then enter the directory path, or the file you want to show up behind the nohidden text and include the space.
Above is how to hide folders, files or choose to hide separate folders with the path attached. How to hide and show hidden files on macOS is quite complicated, so please enter the correct commands and attached characters.
I wish you all success!
You should read it
- Some useful file manipulation tips on macOS
- 6 reasons why Windows 11 is better than macOS
- Everything we need to know about macOS 12
- How to fix signature errors when upgrading macOS
- How to fix common errors when upgrading to macOS Sierra
- How to fix corrupted macOS installer errors
- Useful tips for macOS 10.12 Sierra
- macOS 13 Ventura: New Features, Supported Devices, and Release Date
May be interested
- How to recover deleted files on macOSthe trash area on macos is the place to store deleted files from the folder on the computer. and if the user needs to retrieve the file, he can search here.
- 5 folders on macOS you should not touchapple does hide some folders. cluttering these folders can make the system unstable. the following article will show you where to not touch in the macos file system.
- 5 solutions to backup local Mac to replace Time Machinetime machine comes with all macs. it is ready to run and creates a great option to backup your computer to an external hard drive. but outside there are many other options and these options have features that apple's default backup application cannot compete with.
- How to fix errors cannot clean up Trash on Macnormally, cleaning up the trash folder on a mac is quick and easy. just open the folder and click the empty button in the upper right corner. it's done!
- Synchronize personal data on MACapple has set up a synchronization capability for directly arranging data for the os x operating system in its sync services platform.
- Transfer from Windows to Macin this article, we will show you how to transfer files from a windows computer to a new mac but do not need to set up a network.