If there are some sensitive files on your Mac that you do not want others to have access to, you might want to hide them from public view. There are various ways to hide files on a Mac, and you can even encrypt the files if privacy is your biggest concern.
While the traditional methods of hiding a file leave traces so that others know you have hidden something, a new method that we are going to show you in the following guide does not let anyone know you have actually hidden something. What the method described below does is hide your files inside another file, and users will only see that other file and not the content hidden in it.
Note: the following method is not a failsafe method to hide your files from prying eyes.
Hiding a ZIP Archive in an Image File
First, place all of the files that you wish to hide in a ZIP archive. You will then hide this archive in an image file, so also keep an image ready on your Mac. Make sure all of these files are placed on your desktop.
In the below example, I have two files named “Letter.docx” and “Format.docx” inside a ZIP archive called “SensitiveFiles.zip.” I will hide this zip archive in an image file called “New_York.png.”
Launch Terminal by clicking on Launchpad in your dock and searching for and clicking on it.
When Terminal launches, type in the following command and press Enter. It will change the current working directory to the desktop.
Once the directory has been changed to Desktop, type the following command into Terminal and press Enter. This is the command that will help you hide your ZIP archive inside an image file.
Here’s the breakdown of the command:
cat – cat stands for concatenation which means merging two files together
New_York.png – It is the image file in which the files are going to be hidden. Replace it with the name of your image.
SensitiveFiles.zip – It is the ZIP archive in which your sensitive files are located.
NewYork.png -It is the resulting image that will contain the image itself plus the archive you wish to hide.
As soon as you have run the above command, a new file will be created on your desktop named “NewYork.png” that now contains your ZIP archive in addition to its own content.
When you double-click the newly created file, it will open as an image in your media viewer and will not show any sign of a hidden archive. Only you know what exactly it cobtains.
To extract the archive from the image, you can use the following command in Terminal, and it will extract your ZIP archive from the image to your Mac.
You will get the following message in the Terminal window indicating what files have just been extracted from the image file. These are the sensitive files that you had placed in the archive.
Conclusion
If you wish to hide some files on your Mac without letting anyone know, the above method can help you do that.
Mahesh Makvana is a freelance tech writer who’s written thousands of posts about various tech topics on various sites. He specializes in writing about Windows, Mac, iOS, and Android tech posts. He’s been into the field for last eight years and hasn’t spent a single day without tinkering around his devices.
Our latest tutorials delivered straight to your inbox