Thanks to the Facebook scandal, people are talking about privacy a lot. Privacy is not something that you should only be concerned with online though. People are concerned about offline privacy, even on their computers, but not online. Everyone or almost everyone does know, or at least at some point wanted to know how to hide files and folders on their computers. Almost everyone also has a Windows PC which, until the introduction of the ribbon bar in Windows 8, kept this basic function quite well hidden. Here’s how you can hide files and folders in Ubuntu.
Hiding files and folders in Ubuntu
In Ubuntu, the feature is still quite well hidden with the default file manager Nautilus. Although it provides you with a simple keyboard shortcut to show or hide hidden files and folders. The process of hiding a file or folder is much easier on Linux, not just in Ubuntu. To hide a file or a folder, place a . (dot) before the name. For instance, if you want to hide a file named ‘.Technastic‘ all you have to do is rename it to ‘.Technastic’. The file will immediately disappear when you hit Enter to confirm the name. The process is quite similar for hiding folders.
Showing or hiding hidden files and folders
Depending on the file manager you use, this can be a little different. We will talk about Nautilus and Dolphin here because Nautilus is the most commonly used whereas Dolphin is the second most common file manager. Unless you went with a specific flavor of Ubuntu called Kubuntu, you may probably end up with Nautilus as the default file manager. To show hidden files in Nautilus, go to Edit > Preferences and select the Views tab. Here, select Show hidden and backup files. You also have a much easier option to use a handy keyboard shortcut. Anytime you want to show hidden files press Ctrl+H on your keyboard. Press the same key combination again to hide the hidden files and folders.
If you’re using Dolphin, things are similarly easy if not easier. If you have the menu bar enabled in Dolphin, go to View > Adjust View Properties… and select Show hidden files in the window that appears. If you don’t have it enabled, click Control > Adjust View Properties… and you will still have the same option. A quicker and easier way would be to use the keyboard shortcut Alt+. (dot).
Don’t miss:Â How to Restart KDE Plasma Desktop without Rebooting
Hiding files and folders in a password-protected archive
Hiding files and folders as mentioned above is okay and you won’t need any further complicated methods. Most users aren’t used to Linux and probably won’t be able to unhide your files and folders unless they are tech-savvy. If you have some tech-savvy friends or family members you might want to protect your files with a password instead. Doing this is easier on Linux because you don’t have to install third-party applications. Right-click on the folder or file and select Compress… if you’re using Nautilus. In the pop-up window that opens up, expand Other options and you will have a password field where you can enter the password. When you’re done, click the Create button.
On Dolphin, select Compress > Compress to…Â which will open a pop-up window.
You can see it in the screenshot above. Just name the archive and add the password under Password Protection section. You might also want to make sure that you check the option under the password fields, what it does is quite self-explanatory if you look at the screenshot above. If you find the Password Protection field greyed out, try changing the Archive Type. You can also choose the encryption method but unless you have an Elliot Anderson level threat you should be safe with the default choice. Click OK when you’re ready.