문서의 이전 판입니다!
export LS_COLORS='di=0;35'
/etc/DIR_COLORS
~/.dir_colors
dircolors
명령을 통한 변경 Linux Toolkits: Changing Color for ls on Bash# Step 1: Pipe the information from Dircolors and save as .dircolors dircolors -p > ~/.dircolors # Step 2: Change the contents of .dircolors vim .dircolors #------------------------------------------------ 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 ~/.dircolors
-t
: 수정 날짜 순 정렬-r
: 역순 정렬ls -ltr