Linux: File Colors
-
If you are lucky enough to be working on a Linux system from a colour TTY session, then you likely get to see a lot of commands, such as ls returning file results in colour! Lucky you. This makes things much easier to quickly see differences in files. On CentOS, we will get these standard colours:
- Executable files: Green
- Directories: Blue
- Graphical Image files: Magenta
- Symbolic / soft links: Cyan
- Pipes: Yellow
- Sockets: Magenta
- Orphaned symbolic links & missing links: Blinking bold white on red background
- Block device drivers: Bold yellow foreground on black background
- Archives or compressed files: Red
-
Does putty support this?
-
-
I find the dark blue color for folders abhorrent. My eyes can hardly read it!
In PuTTY, you can go to the "Colours" section under "Window" and change it.
A common color for blue might be 74, 74, 255 and dark blue 140, 140, 255.You have to save the session and give it a name in order to change these settings. And then after changing setting you have to save again.
On the topic of color, I like to narrow the contrast a little. Instead of pure black background I like a dark dark grey with a hint of blue, like 40,40,45 with the foreground text 230,230,230 instead of pure white.
-
From ubuntu 1604 through Putty
-
PuTTY, CentOS.
I also use Consolas, 14pt text. -
@Dashrender said in Linux: File Colors:
Does putty support this?
Basically every terminal emulator can, because the technique behind is - wild guessing here - at least 20 years old.
Basically, the color-encoded data that is getting sent from the shell looks like this:
testing \033[0;37;41mCOLOR1\033[1;35;44mCOLOR2\033[m
That will be parsed by the terminal emulator. There is (or should be, can't find a source for this right now) some magic behind, for example a color-capable terminal tells the server side that he can safely send color codes. You would see a lot of garbage otherwise.
Here's some good info about colors in shells: http://bitmote.com/index.php?post/2012/11/19/Using-ANSI-Color-Codes-to-Colorize-Your-Bash-Prompt-on-Linux (grabbed the string above from there)
-
@guyinpv said in Linux: File Colors:
PuTTY, CentOS.
I also use Consolas, 14pt text.Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever
-
@thwr said in Linux: File Colors:
@guyinpv said in Linux: File Colors:
PuTTY, CentOS.
I also use Consolas, 14pt text.Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever
Didn't say it wasn't.
I mentioned PuTTY in Windows. I particularly like Consolas, I also use it for programming. -
Can someone explain why my screenshot jpg is being stretched? I don't see any settings or data about it being resized. It's not that big!
-
@guyinpv said in Linux: File Colors:
@thwr said in Linux: File Colors:
@guyinpv said in Linux: File Colors:
PuTTY, CentOS.
I also use Consolas, 14pt text.Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever
Didn't say it wasn't.
I mentioned PuTTY in Windows. I particularly like Consolas, I also use it for programming.Didn't mean to offend you, just wanted to clarify. Not everyone here is a Linux guru
-
@thwr said in Linux: File Colors:
@guyinpv said in Linux: File Colors:
@thwr said in Linux: File Colors:
@guyinpv said in Linux: File Colors:
PuTTY, CentOS.
I also use Consolas, 14pt text.Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever
Didn't say it wasn't.
I mentioned PuTTY in Windows. I particularly like Consolas, I also use it for programming.Didn't mean to offend you, just wanted to clarify. Not everyone here is a Linux guru
OMG, that sounds very SAM-ish...
-
@thwr said in Linux: File Colors:
@thwr said in Linux: File Colors:
@guyinpv said in Linux: File Colors:
@thwr said in Linux: File Colors:
@guyinpv said in Linux: File Colors:
PuTTY, CentOS.
I also use Consolas, 14pt text.Fonts are a client-side thing, the data is plain ASCII/UTF8/whatever
Didn't say it wasn't.
I mentioned PuTTY in Windows. I particularly like Consolas, I also use it for programming.Didn't mean to offend you, just wanted to clarify. Not everyone here is a Linux guru
OMG, that sounds very SAM-ish...
Here you go.
OH, you said SAM-ish, whoops.