Ever wanted an easy way to distinguish directories and executables from everything else while you’re ssh’ed in to your FreeBSD box? You may have seen colors using ls on some Linux distros such as SlackWare but now you can have it on your FreeBSD machine.
- Local root access on the box or be able to su to root.
- A SSH client that supports ANSI colors such as puTTy or SecureCRT.
- Your favorite text editor (I prefer nano).
Logon to the machine as root or su to root.
# cd /usr/ports/misc/gnuls # make install # make clean # cd /etc # nano profile
Add the following:
alias ls="gnuls --color=always"
Log out and back in and enjoy.