How to configure the console color scheme in Ubuntu Server 18.04?

  • And what do you mean by color scheme? 16 standard colors or coloring output ls or coloring prompt lines? - Alexey Ten
  • The output of ls, the color of the folders is blue by default, on a black background is not readable at all - play0rdie
  • one
    Then man dir_colors . The network has a bunch of examples of the .dir_colors .dir_colors - Alexey Ten
  • one
    Look at the last link to serverfault, everything is there, added in response. Make a backup at least some, and then the colors this thing is, tastes can change quickly - LFC

1 answer 1

You can do this by simply editing the .bashrc that is in your home directory:

 $ sudo nano ~/.bashrc 

By reference, detailed instructions.

But before making any changes to the color scheme, it is better to make a backup, in case you don’t like something or in another day you want to roll back to the default settings.
Type the command for .bashrc :

 $ sudo cp /etc/bash.bashrc /etc/bash.bashrc.backup 

There is also a detailed video instruction from YouTube.

There is an option with changing the command shell, for example fish .
It will be necessary to install it additionally:

 $ sudo apt install fish 

Fishshell home page

Changing the color of the terminal in Ubuntu Server. Serverfault source

Manpages Ubuntu dir_colors

  • one
    I changed the color scheme in 4 different systems, including Ubuntu Server and Debian, nothing complicated here, just look at the manual. The main thing is not to overdo it with the "thermonuclear flowers" - LFC