ls コマンドで表示結果を見やすくする
[root@colinux ~]# ls -l
[root@colinux ~]# cp /etc/DIR_COLORS ~/.dir_colors
[root@colinux ~]# cat .dir_colors
# Configuration file for the color ls utility
# This file goes in the /etc directory, and must be world readable.
# You can copy this file to .dir_colors in your $HOME directory to override
# the system defaults.
# COLOR needs one of these arguments: ‘tty’ colorizes output to ttys, but not
# pipes. ‘all’ adds color characters to all output. ‘none’ shuts colorization
# off.
COLOR tty
# Extra command line options for ls go here.
# Basically these ones are:
# -F = show ‘/’ for dirs, ‘*’ for executables, etc.
# -T 0 = don’t trust tab spacing when formatting ls output.
OPTIONS -F -T 0
[root@colinux ~]# eval `dircolors ~/.dir_colors -b`