Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I looked through the documentation of Putty but couldn't find the answer. What do the different colors on files and folders signify?

share|improve this question

migrated from Oct 7 '11 at 12:40

This question came from our site for system and network administrators.

I am kinda surprised this hasn't been voted over to superuser already. – Zoredache Oct 28 '10 at 16:55
up vote 19 down vote accepted

It's not putty - run the dircolors -p command it will tell you what color maps to each known file type.

share|improve this answer
+1 for dircolors -p. – jscott Oct 28 '10 at 15:13

It's not puTTY that does the coloring, it's likely dircolors. The specific will vary from distro-to-distro but you can get a good idea of how this works from man dircolors

For instance on my Debian install:

  • Directories -> Dark blue
  • Symlinks -> Cyan

You can also try echo $LS_COLORS to see what's stored in there. You will see the coloring rules in this variable.

share|improve this answer
Well, aside from that technicality, what do the colors represent? – kylex Oct 28 '10 at 15:02
@kylex - The answer depends on your configuration. I'm almost certain the colors aren't defined in any standard, so it could vary from machine to machine. – voretaq7 Oct 28 '10 at 15:05
@kylex - voretaq is correct, it varies based on configuration. See iain's answer for how to check your config without mucking in /etc/dircolors or shell variables. – jscott Oct 28 '10 at 15:18

You are looking in the wrong place: Putty is a terminal emulator, it simply displays the colors the machine you're connected to sends it.
I assume you're using a *NIX-style system, so check the manpage for ls (if it's a Linux box, the man page for dircolors explains a command that lets you set up those colors).

share|improve this answer

This doesn't really have anything to do with PuTTy, it's your shell that makes different types of files/directories appear in different colours. This is done via an environment variable called LS_COLORS and the exact contents of LS_COLORS are usually determined by dircolors, which is typically called by a .profile file, etc., depending on what OS you are using.

Here's a great write-up on this.

share|improve this answer

It may be Putty, and it may be your shell. You can verify by running Putty.exe and going to Configuration->Window->Colours. Looks at what the colors are that Putty is configured to display. Also, at the top, if you're allowing the terminal to specify colors, you should check your shell to see if it is specifying colors, like Bash can.

share|improve this answer

Its just in Putty, in the active putty window, right click on the title bar, click on settings, in putty reconfiguration window, click on colours in window option and uncheck all options and APPLY. it will now show only black and white colors!

share|improve this answer
The question is not about disabling colors, it's figuring out what each color represents. Also - this question is one year old, and answered a long time ago.. – pauska Oct 7 '11 at 11:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .