Toggle navigation
All Forums
Recent Posts
Sign In
LS Command help!
Jump to First Reply
dstranathan
Posted:
October 20, 2003 2:54PM
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
voxapps
Posts:
236
member
October 20, 2003 3:46PM
ls -r?
Go to Terminal, type man ls for a full list of ls commands.
0
Likes
0
Dislikes
0
Informatives
Reply 2 of 3
scott
Posts:
7,431
member
October 21, 2003 7:22AM
It's simple you use this
>man ls
then read.
0
Likes
0
Dislikes
0
Informatives
Reply 3 of 3
mithras
Posts:
165
member
October 21, 2003 9:46AM
ANYWAY, to answer your question:
ls -R is recursive, but also lists files.
To do what you want, try:
find . -type d
0
Likes
0
Dislikes
0
Informatives
Sign In
or
Register
to comment.
Comments
Go to Terminal, type man ls for a full list of ls commands.
>man ls
then read.
ls -R is recursive, but also lists files.
To do what you want, try:
find . -type d