Terminal on Ubuntu Server 24.04 via PuTTY - where to change text colors?

Nils Kassube kassube at gmx.net
Fri Oct 17 08:54:28 UTC 2025


Bo Berglund wrote:
> I have long wondered about the display of file lists (ls -la) where
> certain files get text colors depending on their extension...

> I don't like the selected colors so I want to change them, but where?
> Is it something done in PuTTY or is it an Ubuntu setting and/or nano
> setting?

I don't know about nano, but for ls there is the file ~/.dircolors 
sourced from ~/.bashrc where you can set colours for the ls command.

> In both cases where can I get the file listing to show the files with
> a single color (white on black)?

That would be easier achieved with

alias ls='ls --color=no'

in ~/.bashrc (or ~/.bash_aliases which is also sourced from ~/.bashrc).


Nils






More information about the ubuntu-users mailing list