Find the answer to your Linux question:
Results 1 to 2 of 2
hello readers I use a .dircolorsrc in $HOME to define color schemes in the terminal using dircolors. I wonder why some files do not show up with the specified color ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    3

    colored ls

    hello readers

    I use a .dircolorsrc in $HOME to define color schemes in the terminal using dircolors. I wonder why some files do not show up with the specified color after I opened a new shell. That is, if I create a new file, e.g. with emacs, it has the correct color, but if there is a file that was previously in a directory it does not have the correct color. Some of these files were created on a windows OS, e.g. a .pdf file, has this something to do with it?

    Best,
    Fab

  2. #2
    Just Joined!
    Join Date
    Jul 2010
    Location
    Zagreb, Croatia
    Posts
    9
    hello,

    files that are copied from fat or ntfs partitions usually (always?) have execution flag turned on, so they are colored like programs in output of ls.

    run: chmod a-x file_name

Posting Permissions

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