SSH Color Definations For File and Folder Names

I’ve always wondered what the directory text color representations were after I logged in to my server via SSH. I did a Google search and found that the colors are references to document states: Here’s a simple color chart below:

  1. Executable files: Green
  2. Normal file : Normal
  3. Directory: Blue
  4. Symbolic link : Cyan
  5. Pipe: Yellow
  6. Socket: Magenta
  7. Block device driver: Bold yellow foreground, with black background
  8. Character device driver: Bold yellow foreground, with black background
  9. Orphaned syminks : Blinking Bold white with red background
  10. Missing links ( the files they point to) : Blinking Bold white with red background
  11. Archives or compressed : Red (.tar, .gz, .zip, .rpm)
  12. Image files : Magenta (.jpg, gif, bmp, png, tif)

Side Note: You can also list file and folder permissions by using this command:

ls -al /var

You may also like...

Leave a Reply