Results 1 to 4 of 4

Thread: making ls parse .hidden files

  1. #1

    Default 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?

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: making ls parse .hidden files

    Not as far as I know.

  3. #3
    Camalen NNTP User

    Default Re: making ls parse .hidden files

    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,

    --
    Camalen

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,894

    Default Re: making ls parse .hidden files

    And for normal users the default behaviour is not to show file/directory name starting with a . . But
    Code:
    ls .*
    (or variants)does.
    Henk van Velden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •