How to Hide files in Mint

  6 years ago

I'm gonna show you a way of  hidding your files without changing their names.

To begin with, you have to create a file called ".hidden"' in the same directory where you have the files you want to hide.





After that, you have to do is to open that file with Text Editor and add the names of files/directories to that file, one per line.  Finally, you need to refresh the view.










To see your hidden files press Ctrl + H

subho 4 years ago

good one

luisbraganca 4 years ago

Now that's useful!

mint23943 5 years ago

Super :)

AshutoshKale 5 years ago

Nice one !!!!

MagicMint 6 years ago

@prsnt: Throw out Windows ;-)

@efthialex: A nice little tutorial about a feature a little unknown, but expedient!

sujitnag 6 years ago


efthialex 6 years ago


It works on every version of Linux Mint.

chompskyhomp 6 years ago

This doesn't work for me for some reason. Worked on every other distro I've ever tried.

mfzn 7 years ago
but its showed on wind***

breaker 7 years ago

Good tutorial, I didn't know about the special .hidden filename, only dot filename. Thanks.

Bobster 8 years ago


Anleoje 8 years ago

Cool!!! :P

ivy_s 8 years ago

Very goof tutorial.
Thanks for the info.

Perkins 8 years ago

Oh, couple more things, important folders at specific locations can't easily be hidden this way. (e.g. .Desktop doesn't resolve to the same folder as Desktop, so anything that points to Desktop won't find the folder if you rename it to .Desktop) Also, the command to display hidden files is `ls -a', from the GUI ^H will display files that start with '.'. The open/save dialog boxes in gnome do display hidden folders without even a note that they are hidden (Ever notice all the . names in your home folder?). Same goes for samba shares being accessed from windows, I don't know if the .hidden file hides them from samba and the open/save dialog or not. Oh, and my advice is to leave all the folders in your home folder that begin with '.' alone, they are usually configuration files specific to the user.

diegoCode 8 years ago

Cool! Thank you!

efthialex 8 years ago


I didn't know this, i'll try it.

Perkins 8 years ago

Note that in windows running dir /a will show hidden files, so they are not really hidden, just not shown by default.
Also, with ext filesystems, any file or folder starting with `.' is hidden, this applies to folder/files or links. It also applies to file lists shown on the command line. If you want files not readable to others (not just hidden), run `chmod o-r' (to make them not group readable run `chmod g-r'). This doesn't hide that the files are there, but does keep them from being read. (If you `chmod o-r' a directory, the contents of the directory cannot be seen or read.) Note that none of this keeps the file owner from reading the files, only way to do that is by encrypting the files with a password.

blueXrider 8 years ago

Nice tutor

@ihends actually there is a script to hide-unhide using right click see #5

I haven't used it but it should be ok.

executable 8 years ago

I don't understand why unix and linux file system don't have hidden attributes like on windows.

We must add this bit on next ext5 :) so the file attributes become rwxhrwxhrwxh

efthialex 8 years ago

@ihends you could rename your file and add a dot at the beginning

etc file -> .file and your file would be hidden.

With this way you can hide only files, not directories. ;)

ihends 8 years ago

is there any simpler way of doing this..
can i hide the files with my rightclicks..
so i don't have to make many .hidden documents for each folder...

obakfahad 8 years ago

Thanks yaar.

Steampunk-Nick 8 years ago

great tutorial!

mysoomro 8 years ago

Thanks a lot. I was looking for a way to hide some of my file, that I didn't want children to mess up with.
I hope it's not as lengthy as it seems in this tutorial. :-)

nurtel9 8 years ago

Good one

Frank 8 years ago

Muy bueno!
Thank you

Tonya 8 years ago

Cool!!! Thank you very much!

MintyFresco91 8 years ago

very useful trick to prevent intruders. take that hackers CTRL + H!


slw_ 9 years ago

Handy. Thanks.

wanda 9 years ago

Thank you!

mercury700ir 9 years ago

Thanks alot...
Useful knowledge for someone like me, which is a new user to linux.

maxpestun 9 years ago

Yes, very cool feature! Thanks!

gonye 9 years ago

Yes it's great! I didn't know the CTRL+H command. Thanks!

efthialex 9 years ago

You're all welcome

mikefreeman 9 years ago

Really cool! I didn't know you could do this!

zaenal1234 9 years ago

very good, without rename the file. and can also be used to hide folders.

sayan_acharjee 9 years ago

Did not know this method.
I used to use only dot (.) to hide files :D

efthialex 9 years ago

@Elisa You can do that only for files,not for directories. ;-)

Elisa 9 years ago

Just curios (because didn't tried it :)) - isn't it easier, without typing especially long names files to create a folder ".whatever" and move all files even folder to that hidden folder? ;)

efthialex 9 years ago

I changed it.

m4daredsun 9 years ago

Thank you! I am not a total beginner, but was not aware about this possibility for cleaning interfaces

Xyie 9 years ago

Sounds really useful, not just for one's self but also potentially for cleaning up an interface for someone inexperienced so they don't mess with anything they shouldn't tinker with.

efthialex 9 years ago

I fix it.Thank you.

remoulder 9 years ago

Nice, but you may want to check your spelling, beginners not begginers. Also you should mention that after saving the file you need to refresh the view.