making ls parse .hidden files

Hi. I know that using a .hidden file in / I can hide folders/files from nautilus/thunar/dolphin/konqueror. But the “ls” command don’t seem to be able to parse that file and hide the folders/files listed in the .hidden file. My question is, is there any way to force the “ls” command to hide folders/files listed in the .hidden file like the GUI filemanagers do?

Not as far as I know.

fbsduser wrote:

> Hi. I know that using a .hidden file in / I can hide folders/files from
> nautilus/thunar/dolphin/konqueror. But the “ls” command don’t seem to be
> able to parse that file and hide the folders/files listed in the .hidden
> file. My question is, is there any way to force the “ls” command to hide
> folders/files listed in the .hidden file like the GUI filemanagers do?

You mean for “root”?

Yes, you can change variable “LS_OPTIONS” in “/etc/bash.bashrc” (just
removing the “-A” should do the trick).

Carefull with this!

Greetings,


Camaleón

And for normal users the default behaviour is not to show file/directory name starting with a . . But

ls .*

(or variants)does.