I ran dircolors --print-database to show the default dircolors configuration and it included these lines (reformatted for clarity):

# symlink to nonexistent file, or non-stat'able file ...
ORPHAN 40;31;01

# ... and the files they point to

I understand how a symlink can point to a nonexistent file. But how does it make sense to specify the color of the pointed-to file, since such a file can’t exist in the first place?


With the -l option, ls displays the target of each symbolic link. If you specify a style for MISSING then this will be used to display the target of a broken link. (If you don’t specify a style, or use the default 00, then the target will be displayed with the same style as is used for the link name itself.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.