Terminal display

esavas

Registered
I have seen somebody publish a screenshot of their folder listing on the terminal app.
All the folders are listed with a forward slash attached at the end like: folder/

Does anybody knows how to do this ?

Thanks.
 

tcpip

Registered
I suspect that what you saw was an alias to the "ls" command such that folders and other special files are given symbols after their name to represent what they are.

My favourite way of doing this is is to use "ls -FC" as your ls command, which will give output such as:

Desktop/ Music/ Sites/
Documents/ Network Trash Folder/ TheVolumeSettingsFolder/


And so on.

Check the manual page on "ls" (type "man ls" in a Terminal session) for other options that may be of interest.

You can add this to your default setup by editing your .cshrc in your home directory and adding a line such as:

alias ls ls -FC

Good luck!
 

esavas

Registered
Thanks a lot ! I'm about to alias everything I can.
 
Top