Let’s find out the best possible ways to hide sensitive files on your Linux or Ubuntu computer.

Hide Files and Folders in Linux

On Linux, hidden files are simple files with a name that starts with a dot. This is why they’re also often called dot files on Unix. To hide a file on Linux, all you have to do is rename the file. To hide files, all you need is to add a dot before the name. Depending on your desktop environment, the default files app will be different. But almost every app follows a similar process for renaming files and folders. Click anywhere when you’re done and the file will be immediately hidden. You can also click on the file name twice to rename it. Just make sure you don’t double-click but, click two times instead, with some time gap between the clicks.

Show Hidden Files on Linux

To see hidden files, you can use the menu options available in your Files app. Again, depending on your desktop environment, the Files app you’re using would be different. That means where they place the option to Show hidden files will also be different. That said, GNOME and KDE Plasma are the two most popular desktop environments. So we’ll see how to show hidden files in Linux if you’re using either of the two.

GNOME (Nautilus)

GNOME is the default desktop environment on a number of Linux distros, including Ubuntu. And Nautilus is the default file manager on GNOME desktop. To show hidden files in Linux with Nautilus, follow the steps below.

KDE Plasma (Dolphin)

KDE Plasma is another default DE on a number of different Linux distros. Like GNOME, KDE Plasma has its own framework and design language. It uses Dolphin as the default file manager. Here’s how to show hidden files in Dolphin. A universal way to show hidden files is to use a keyboard shortcut instead. You can press Ctrl + H on the keyboard to show hidden files on Linux. It works as a toggle, so you can press Ctrl + H again to hide the hidden files too. The keyboard shortcut works across all Linux distros and desktop environments.

Hide Files on Linux Without Renaming

Adding a dot is simple, but it can complicate things in some situations. If you want to hide a folder that other programs depend upon, renaming them could spell trouble. For example, the Downloads folder which is where all apps default to when downloading files. If you rename it to .Downloads, programs will create another folder names Downloads when you download something. So, now you have two folders. The only way to avoid that would be to go into each and every program or app and change the default download location. Similarly, the snap folder, if you have snap installed, is important for snap apps. But here’s a cool trick to hide such important files or folders without renaming them. The file or folder you typed the name of in the .hidden file should now be hidden. You can hide multiple files or folders with the same file. Just type each name in a new line as shown in the screenshot above. Keep in mind that the .hidden file needs to be in the same location as the files or folders you want to hide. You can always hide or retrieve any files ion your Linux computer. Although, these files will be visible if the “Show Hidden Files” option is enabled on the Files app on your computer. Anyone who knows to unhide a file can find your hidden files. Notify me of follow-up comments by email. Notify me of new posts by email.

Δ

How to Hide Files and Show Hidden Files on Linux - 4How to Hide Files and Show Hidden Files on Linux - 8How to Hide Files and Show Hidden Files on Linux - 71How to Hide Files and Show Hidden Files on Linux - 94How to Hide Files and Show Hidden Files on Linux - 56How to Hide Files and Show Hidden Files on Linux - 94How to Hide Files and Show Hidden Files on Linux - 41How to Hide Files and Show Hidden Files on Linux - 99