Want to Get List of All directories

:confused: Hi,

Is there any one-lier through which I will be able to reach to last directory excluding all files only directrory and sub-directoris should be displayed from the current path.

Thanks in advance

is this is what you are looking for ?:

ls -ltrR | grep ^./

Thanks a lot...

it worked as per my requirements...!!! :wink: :cool: :b:

Another way..

find . -type d
ls -lRF | grep \/$

Thanks all these options all working....!!! :b:

find . -type d | grep ^./

this way not give "."

ls -d */
ls -F | grep /
for only files ls -F | grep -v /
ls -l | ergrep ^d
Edit/Delete Message