List directories (folders) with ls
$ ls */ -d
*/
will list the directories - and their content. The option -d
tells ls
not to list the content of directories.
Telling ls
to list contents - and then not to - is counter-productive but I’ve found no elegant way to do so. Let me know if you do.
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki