If you’ve been using a Mac long enough, you’ve surely wondered how to hide a file. It could be an important work document that you don’t want anyone to see, or something a little more personal. Whatever it may be, today we’re going to talk about three surefire ways to hide files on your Mac.
1. Using Terminal
First, we can use a simple terminal command to hide folders from prying eyes. Open Terminal and enter the following command:
hidden chflags (Path to file here)
Before pressing Enter, drag the folder or file in question to Terminal and the path will show up. Of course, you can also enter the path manually. Just remember that if your folders/files have spaces, make them dashes first.
Now the contents of the folder are hidden. There are two ways to unhide them. You can unhide specific folders or do so for all hidden folders on the system.
Unhide specific location
To do so with only the folder we have hidden, use the following command:
chflags nohidden (The path to the file is here)
If you come back after a few days to unhide it and want a quick way to know the path of the hidden file, write the following command:
history
This will display all the commands you entered. Copy the path name in chflags nohidden command and press Enter.
To unhide all hidden folders, type the following command:
default says com.apple.finder AppleShowAllFiles TRUEkillall Finder
If you’re using a Mac running Mountain Lion or below, you’ll have to capitalize F IN com.apple.finder.
To hide all files again in the same way, use the following command.
default write com.apple.finder AppleShowAllFiles FALSEkillall Finder
2. Use obscurity
Obscurity is a shell application. Download the .dmg from here, open it and drag the file hidden folder to anywhere on your system.
Now right click on the folder and select View package contents.
Here, drag any files in and they will be secretly saved. Anyone just need to click hidden the directory will not be able to access the files. You can of course change the name of the folder.
3. File Encryption
The next level in the chain of security, after hiding files, is to encrypt them. You can do this using your Disk Utility.
Open Disk Utility and go to File > New > Disk Image from Folder.
Select the folder you want to encrypt, and don’t forget to choose 256-bit AES encryption from the Encryption drop-down menu.
Specify a password for authentication.
That’s it, your files are now protected.
How do you keep your Mac secure?
Did you know: Mac offers FireVault encryption to encrypt everything on your Mac. That means even if a person gets hold of your Mac, they can’t access your data without your password.
What do you do to secure your Mac? Let us know in the comments below.
Categories: How to
Source: thpttranhungdao.edu.vn/en/