MAC list all folder names terminal

To list all the folder names in the current directory in the terminal on a Mac, you can use the ls command with the -d and -1 options.

ls -d */

The -d option tells ls to only list directories, not files, and the -1 option causes ls to print the names of the directories one per line.

Here is an example:

$ ls -d */
Desktop/
Documents/
Downloads/
Library/
Movies/
Music/
Pictures/