How can I tell which ones are directories in ls output? It seems ls doesn't differentiate directories and files. I know I can use cd to test but is there a way to make it more obvious when I ls a pth? PS: I have one Debian 5.0.9 server which uses different colors to show directories and files. But another Debian 6.0.4 server doesn't do it.
If you prefer to use colors you can force it to by setting the
force_colors variable to true in the /etc/profile (or /etc/bash_profile). It depends on whether or not they think your terminal supports colors. Since most do these days it won't hurt to force it.
You could also do it yourself by putting this in your ~/.bashrc:
alias ls='ls --color=auto'