You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



How to hide files and directories

Author (Read 11834 times)

0 Members and 1 Guest are viewing this topic.

How to hide files and directories
« Reply #1 on: August 21, 2014, 05:51:27 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
There are two ways to do this:
   
One is to rename your file or folder and add a dot as the first character in the file/folder new name.
Example:
file   ----> .file
folder ----> .folder
You can do it by right-clicking on the file/folder and then on Rename. I mostly use the F2 key to rename files and folders.
If you want to use the command line:
Code: [Select]
mv file-name  .file-name
Code: [Select]
mv folder-name .folder-name
The other way is better because you don't have to rename a file or a folder.
All you need to do is to create a file .hidden in that folder where you want to hide your files or folders and type in the file or folder name you want to hide.

Here is an example:
You want to hide these folders Documents, Pictures, Videos, and this file bootfloppy.img. All of these are in the /home/user/
1. Open a file manager, go to /home/user/ and show all hidden files. Click on View and when menu pops out on Show Hidden Files. Instead of this you can use a keyboard shortcut Ctrl+H to show/hide hidden files.
2. Right click on an empty space inside a folder and when the floating menu appears go to Create Document > Empty File.
3. Name the new file .hidden and open it. Double click on it or open that file with Leafpad.
4. In the file .hidden you will save file/folder names you want to hide. In this case the folders and a file.
Here is the .hidden  file content:
Code: [Select]
Documents
Pictures
Videos
bootfloppy.img
As you can see, one file/folder per line.
5. Save it and hide all the hidden files and folders (Ctrl+H).
6. Now all you have to do is to "Refresh" the view. You can do this by clicking on Trash or Desktop and then just go back to the folder, or just close and open the file manager again.
« Last Edit: August 21, 2014, 07:06:58 PM by misko_2083 »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section