Index / Unix
FreeBSD has two different shells in the base system. sh(1) is a Bourne type POSIX compatible shell and the default for new users. tcsh(1) on the other hand is an advanced version of the C shell and the default for the root user.
I use sh for both scripting and interactive use. Here follow some tips and tricks that I have found useful.
This is actually a feature of ls(1). Color listings can be permanently
enabled by setting the environment variable CLICOLOR
, the actual
colors used can be defined with the environment variable LSCOLORS
.
Here is what I have in my .profile
:
export CLICOLOR="1"
# ls(1) attr.key:1122334455667788990011
export LSCOLORS="Exfxcxdxbxegedabagacad"