The simplest solution (as given already by @don_crissti in the comments) is:
ls -p
You can get a similar effect with:
ls -F
But that will add some other indicators as well:
Append a character to each file name indicating the file type.
Also, for regular files that are executable, append *
. The file
type indicators are /
for directories, @
for symbolic links,
|
for FIFOs, =
for sockets, >
for doors, and nothing for
regular files.
Of course, you can make the string ls
execute ls -p
on the command line with an alias:
alias ls='ls -p'
That is temporal and could be erased with unalias ls
.
Probably your tcsh
has an active alias in place.
Which you can do by placing the command in ~/.bashrc
or ~/.bash_aliases
.
man ls
then scroll down to-p
type ls
output ? Maybe an alias ?ls is a tracked alias for /bin/ls