LS Command help!

Jump to First Reply
Posted:
in macOS edited January 2014
What is the LS command to show all my directories recursively, but NOT show any files?



I want to see all the folders on my server, but NOT any files.

Comments

  • Reply 1 of 3
    voxappsvoxapps Posts: 236member
    ls -r?



    Go to Terminal, type man ls for a full list of ls commands.
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 3
    scottscott Posts: 7,431member
    It's simple you use this



    >man ls



    then read.
     0Likes 0Dislikes 0Informatives
  • Reply 3 of 3
    mithrasmithras Posts: 165member
    ANYWAY, to answer your question:

    ls -R is recursive, but also lists files.



    To do what you want, try:

    find . -type d
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.