in reply to how do I remember the trailing /
so you see that my console session runs ls with some options. However, you don't generally inherit aliases. So what you want to do is either to run ls with the -p option as Hofmator suggested, or to use stat or -d to find out whether the file is a directory.$ which ls alias ls='ls --color=auto -B' /bin/ls
|
|---|