I want to list ONLY the directories ( not the files ) recursively with ls -R

Posted on 2010-01-02
Last Modified: 2013-12-06
I want to knows my directory tree

The command I wish worked would be ls -Ld but it does not.

I would really help with the /proc direcory :)

Question by:TIMFOX123
    LVL 68

    Accepted Solution

    I think the best option would be using find.

    find /proc -type d -ls
    LVL 7

    Assisted Solution

    ls -lr | grep dr
    LVL 68

    Assisted Solution


    neat idea, but you should use grep "^dr" (start of line)

    Author Closing Comment

    Works for me.

    Thank you very much.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now