If you have a file that you want to hide from other users, then we recommend reading the following guide where we will teach you How to hide files and folders in Ubuntu Linux with commands?
Without a doubt, hiding files and folders within Ubuntu is one of the most effective methods to protect your information . This is a very simple procedure that you can do in various ways as you can see below.
What is a hidden file?
Hidden files are normal files, which due to user or system intervention have attributes that make them not visible to the naked eye. This practice is used by the system to protect important and essential files for the OS , but it can also be useful for users.
If you want to protect your information you can hide the files. For this reason, you should know what is the process to hide files and folders in Ubuntu Linux. The truth is that the procedure is quite simple and undeniably very useful, so we recommend that you read the following guide that we have prepared for you.
How to hide files and folders in Ubuntu Linux with commands?
There are several ways in which we can hide files with Ubuntu, each of them has its advantages and disadvantages, but we leave this to your discretion. For this reason, it is advisable to learn basic Linux commands that will be very useful for you. Without further ado, read the following guides to learn how to hide files and folders in Ubuntu Linux:
Hide files and folders in Ubuntu Linux using a Dot
For all those who are new to the Linux platform , the idea of hiding files using only a period might seem far-fetched. Anyway, this can actually be done, it is possible to hide files using only a period, but how is this done?
To hide files using a period , all you have to do is rename the document and put a period at the beginning. By doing this, the operating system will be told that the file should be hidden, which is why the file will be invisible after renaming.
This procedure can be done through your preferred browser and also using the terminal. In the case of using the terminal, all you have to do is use the command “mv”, for example: “mv arandano.jpg .arandano.jpg”. You can also search your files in Ubuntu using commands to access them quickly.
It should be noted that this method can also be used to hide folders within Ubuntu, in which case the procedure is the same, you just have to change the name of the folder by adding a “.” At the beginning of the name. After making this change, the system will understand that this file should be hidden and will actually go to it.
Use the .Hidden command to hide files and folders in Ubuntu
Another option we have is to use the so-called .hidden files , a small file that we will create and with which we will indicate to the operating system that the files provided within said list should remain hidden.
To carry out this procedure, all you have to do is create a .hidden file, it is very important that you create the file as is, with the name provided above, since Linux will detect said document, examine it and later establish that its content dictates which files they will be hidden inside the folder.
Open the .hidden file using a document or text manager and within this document all you have to do is include the name of all those files you want to hide . It is very important that you put one file per line and that each of the files also have the extension.
When performing the previous procedure, the next thing you should do is save the changes . After this, update and the files that you have included in the list to hide should no longer appear. This represents one of the most functional and simple methods to hide files in Ubuntu. Later, you can choose to show the hidden files from the terminal if you wish.