Did you know most file managers on Linux support a ".hidden" file in your home directory?
It works pretty much as gitignore does: it hides everything that you list in this file, one file/dir per line.
You just have to remember they can easily be found by using ls -a
Yeah, don't mistake this for a security feature. It's just there for convenience when browsing your files in a GUI tool like Dolphin or Nautilus.
But also, if you're using Apache with standard configuration, all .ht* files are hidden, i.e. not served (but you can use them as included files).
@fribbledom fosspost seems offline, cloudflare page presented...
Still works for me. Behind a VPN they block maybe?
@fribbledom nope, no VPN at all
This… is… AWESOME. I had no idea about `.hidden`. This way I can de-clutter my $HOME polluted by a shiton of programs not caring about XDG Base Directory Specification. (https://beko.famkos.net/t/f1W)
@fribbledom sounds like security by obscurity 🙂
No, don't mistake this for a security feature. It's convenience.
@fribbledom I'm a hard core linux user and this is actually news to me. Though they failed to mention if it worked like dot files in the shell itself, which would be the most important for me as I dont often use graphical fiel managers.
I never said "never listed". with ls when dealing with dotfiles if you do a ls they are not listed. However you can cause them to be listed by using the -a argument. I would have expected hidden files to work the same, not listed by default but capable of being listed with -a.
That means that ls would have to read and parse any .hidden files in every directory, when normally it only reads filesystem entries. And since it already ignores .* files by default, I suspect that might increase runtime of some usages which go through large directory trees in little time. GUI file managers do a lot of GUI stuff, often generate previews and usually show only a single directory level at the same time. No biggie.
@fribbledom Pretty cool. On the few occasions that I made file manager screenshots to explain something, I always blurred out the names of my Nextcloud folders, which are named after my two instances. This is much better, thanks!
@fribbledom Most of these issues could be done by giving the right permissions on the system itself. GUI's should not even bother with it, they should only give the right error to the user imho.
@fribbledom And there is one other danger. See how 'crackers' used to find files above the document root. Simply store a script where you can, chmod it and run the script. It will give all of the details, even in the GUI
A better solution, imho, would be to give users that should not see files a chroot shell and store files they should see in a directory there.
@fribbledom As a result, so does Android.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!