Last Updated : 19 Sep, 2024
In the Linux framework, there are a ton of hidden records that incorporate for the most part the client setup document and the application documents. You can likewise hide your Files and Documents in your framework on the off chance that you are imparting them to another individual or because of any explanation. In any case, recall that hiding the documents doesn't safeguard your security, as anybody can see hidden records. Hiding Files and Documents simply makes the record imperceptible for the customary client investigating or posting the documents. Likewise, it keeps the index from being jumbled.
Here, we have covered both command-line and graphical user interface (GUI) methods for hiding and unhiding files, along with helpful keyboard shortcuts for easier file management.
Creating Hidden Files can be done in two best ways in Linux:
To hide a record in Linux, you have to add a spot (.) toward the start of the filename.
Method 1: Command-line to Hide Files in LinuxHide the file by moving it under a new filename. The period (.) at the beginning of the new filename indicates that it’s hidden.
$ mv Firefox-Temp-Binary .FF-test
After renaming by adding '.' (dot) with '$ls' command file cannot be viewed as it is hidden.
Method 2: GUI (Graphical User Interface) to Hide Files in LinuxYou can also hide files through the graphical interface by renaming them with a dot at the beginning of the file name.
Step 1: Right-click on the file and select the Rename option.
Step 2: Make the file hidden by placing a .(dot) at the beginning of the filename.
Renaming the file by clicking 'Rename' and adding .(dot) at the beginning of the new file name will hide the file. Once renamed, the file will become hidden in your file manager.
Hidden files can be viewed using two different methods: the command line and the GUI.
Execute the below command to view all the hidden files in the terminal itself.
$ ls -a
This command will show every hidden record (whose names start with a . (dot) image) in your ongoing Terminal catalog.
Method 2: File Manager Toolbar Hidden Files in LinuxTo display hidden records in Linux File manager:
This will show every hidden record (whose names start with a . (dot) image) in your ongoing Terminal catalog.
Unhiding files in Linux:Note: "Ctrl + H" is a keyboard shortcut used to show hidden files.
Just as you can hide files, you can also unhide them by renaming them and removing the dot from the beginning of the file name.
We can unhide by 2 different methods:
Use the 'mv' command to rename the hidden file and remove the dot from the file name:
$ mv .FF-test Firefox-Folder
This command makes the file visible again.
Method 2: File Manager toolbar (GUI) to Unhide File in LinuxTo unhide hidden records in Linux File manager:
Note: "Ctrl + H" keyboard shortcut is used to show hidden files. After hidden files are shown renaming the file by removing . (dot) in front of it make the file from hidden to normal. That's how GUI way used to unhide a file.
After renaming the file removing .(dot) in front of the file will make the file unhidden.
Hiding Files via Keyboard shortcut (GUI)To hide unhidden files in Linux "Ctrl + H" keyboard shortcut is used.
ConclusionIn this article we discussed the process of hiding files in Linux which offers a practical way to manage your system's organization. However, it's crucial to remember that hidden files in Linux are not entirely secure. You can effectively hide and unhide files using both command line and GUI methods. Additionally, the "Ctrl + H" keyboard shortcut provides a convenient way to toggle the visibility of hidden files in Linux. These techniques help Linux users streamline their file management, ensuring that specific files remain out of view when necessary.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4