Hide a file
The Files file manager gives you the ability to hide and unhide files at your discretion. When a file is hidden, it is not displayed by the file manager, but it is still there in its folder.
To hide a file, rename it with a . at the beginning of its name. For example, to hide a file named example.txt, you should rename it to .example.txt.
You can hide folders in the same way that you can hide files. Hide a folder by placing a . at the beginning of the folder’s name.
Unhide a file
To unhide a file, go to the folder containing the hidden file. Press the menu button in the sidebar of the window and select Show Hidden Files, or press Ctrl+H. Then, find the hidden file and rename it so that it does not have a . in front of its name. For example, to unhide a file called .example.txt, you should rename it to example.txt.
Once you have renamed the file, you can either press the menu button in the sidebar of the window and switch off Show Hidden Files, or press Ctrl+H to hide any other hidden files again.
By default, you will only see hidden files in the file manager until you close the file manager. To change this setting so that the file manager will always show hidden files, see Views preferences in Files.
Most hidden files will have a . at the beginning of their name, but others might have a ~ at the end of their name instead. These files are backup files. See What is a file with a ~ at the end of its name? for more information.