We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags
See BLT.

.dir_colors: a user-edited configuration file that is used with the ls command to display special files or directories in bold print or different colors than the rest of the files or directories, making searches for the files easier by having them stand out from the rest of the listing.

There are two optional ways that files in an ls listing can be marked to help identify their type -- by a color code and/or by a special character at the end of the file name. Here is the beginning of a table: (The colors listed are those used in kde, and I'm assuming they are fairly standard.)

File Type Color Character Comments
ordinary black na
directory blue "/"
executable lt. green "*"
link light blue "@" "@" in a short listing, "->" and the linked file in a long listing (ls -l)
failed link flashing red
archive red tar, gz, zip, etc.
pipe ? " " A pipe
? ? "=" Other than the above?

The special characters are displayed when the -F parameter is passed to ls (or ls -F is aliased to ls).

There are more!

Aside: I suspect that .dir_colors (in a user's home directory) is a user's personal color file, and that /etc/DIR_COLORS is the skeleton? file for all users.

Contributors

  • HaroldSharp - 30 Jan 2002
  • RandyKramer - 31 Jan 2002
  • <If you edit this page, add your name here, move this to the next line>
Topic revision: r7 - 07 Sep 2003 - 14:47:55 - AnitaLewis
Wikilearn.DotDir_colors moved from Wikilearn.Dir_colors on 05 Feb 2002 - 21:15 by RandyKramer - put it back
 
TWIKI.NET
Copyright © 1999-2008 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
See TWiki's New Look