dircolors
명령을 통한 변경
Linux Toolkits: Changing Color for ls on Bash# 문서상 파일 이름이 ".dircolors"로 나와 있는데 ".dir_colors"가 맞음
# Step 1: Pipe the information from Dircolors and save as .dir_colors
dircolors -p > ~/.dir_colors
# Step 2: Change the contents of .dir_colors
vim .dir_colors
#------------------------------------------------
NORMAL 00 # global default, although everything should be something.
FILE 00 # normal file
DIR 01;34 # directory
.........
#------------------------------------------------
Color Codes (Foreground):
00;30=Black
00;31=Red
00;32=Green
00;33=Brown
00;34=Blue
00;35 Magenta
00;36=Cyan
00;37=White
01;30=Grey
01;31=Light Red
01;32=Light green
01;33=Yellow
01;34=Light Blue
01;35=Pink
01;36=Light Cyan
01;37=Light Gray
# Introduce DirColors to the new configuration
dircolors -b ~/.dir_colors