Skip to content

Instantly share code, notes, and snippets.

@mlsimpson
Created November 15, 2011 17:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlsimpson/1367739 to your computer and use it in GitHub Desktop.
Save mlsimpson/1367739 to your computer and use it in GitHub Desktop.
dircolors <==> LS_COLORS
RESET rs # reset to "normal" color
DIR di # directory
LINK ln # symbolic link (if set to 'target' instead of numerical value, the color is the same as the file pointed to)
MULTIHARDLINK mh # regular file with more than one link
FIFO pi # pipe
SOCK so # socket
DOOR do # door
BLK bd # block device driver
CHR cd # character device driver
ORPHAN or # symlink to nonexistent file, or non-stat'able file
SETUID su # file that is setuid (u+s)
SETGID sg # file that is setgid (u+g)
CAPABILITY ca # file with capability
STICKY_OTHER_WRITABLE tw # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE ow # dir that is other-writable (o+w) and not sticky
STICKY st # dir with the sticky bit set (+t) and not other-writable
EXEC ex # for files with execute permission
@mlsimpson
Copy link
Author

This is the relation between dircolors settings and LS_COLORS settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment