Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 serverfault.com Oct 7 '11 at 12:40

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

    
I am kinda surprised this hasn't been voted over to superuser already. –  Zoredache Oct 28 '10 at 16:55
add comment

6 Answers

up vote 16 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  
+1 for dircolors -p. –  jscott Oct 28 '10 at 15:13
add comment

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
2  
@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
1  
@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
add comment

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
add comment

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
add comment

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
add comment

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
1  
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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