Translations: Русский


bash is a Unix shell written for the GNU Project. Its name is an acronym for Bourne-again shell, a pun ('Bourne again' / 'born again') on the name of the Bourne shell (sh), an early and important Unix shell written by Stephen Bourne and distributed with Version 7 Unix circa 1978. bash was created in 1987 by Brian Fox. In 1990 Chet Ramey became the primary maintainer.

bash is the default shell on Debian and coming colorless. To increase human readability, we should made its output the colorful.

We will add the following contents to system-wide configuration file /etc/bash.bashrc or in user's ~/.bashrc, using preferred text editor:

export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'

Apply changes by executing the command

~$ source /etc/bash.bashrc; source ~/.bashrc

Or by executing

~$ exec bash

Now test to make sure that changes were applied

~$ ls

The output of a command should be color.