Terminal font colors, what does they mean?
QQ, what means those colors?, so far I know that cyan means a folder, and regular green is a normal file, like a sort of executable.
But there are others, like bold green, brown, red (I think red is a zip file), and so on. I looked into the colors profile inside the Terminal application but nothing tells me what those colors mean. Thx! |
Greetingz!
You're talking about the colors of files when you use "ls" in a terminal session, right? These colors used to make certain file types stand out, typically by extention (.so, .sh, .tgz, .jpg, and so on). Since you didn't mention what Linux Distribution you're running, I'll go over my "Red Hat Enterprise Linux"-compatible system (CentOS). (Different Linux distributions implement colors for the "ls" command differently) To find out what colors are set where, you can either; a) Type "env|grep ^LS_COLORS" This should show an environment variable with all the colors defined. b) Type "ls -l /etc|grep -i colors" Code:
-rw-r--r-- 1 root root 2.5K Feb 28 2010 DIR_COLORS Here's my DIR_COLORS (I've bolded the relevent section) Code:
# Configuration file for the color ls utility |
Thx a lot for your answer!, Im gonna change that dark blue.. cant see it over my black console.
Btw, Im using Debian Squeeze, and yes, I was talking about the font colors when you run ls commands. Edit.: ls -l /etc|grep -i colors gives me nothing :) |
Quote:
(It's also dark-blue, and I can't find a way to change it that works on both Linux & Solaris) Quote:
See, the whole "Color output" thing for the "ls" command has been around so long, everyone (each distribution) seems to have their own way of doing it. Kind of like managing Network devices; every distro has their own idea of what to call their scripts, how many scripts to use, etc, etc. All just to get a NIC plumbed, IP'd, and online. Check and see if you have a dircolors command ("which dircolors"), and if so, it's man page ("man dircolors") might lend some insight into how they (Debian folks) do it in color. |
Quote:
Here's a short Bash script to display all the color combinations as they will appear on your display: Code:
#!/bin/bash Tom |
All times are GMT -5. The time now is 04:21 AM. |