728x90 AdSpace

  • Latest News

    Sunday, 23 July 2017

    How to show directory only with ls command

    How to show directory only with ls command

    The ls command on lubuntu (and linux in general) will output list of files and directory, but what if i just need to show list of directory with ls? how to show directory only with ls command?

    Lucky for you, there is a trick to make the ls command to show only directories, here's the command that you have been looking for:
    ls -ld -- */

    You can also use this trick:
    ls -F | grep /

    This command also works:
    ls -ad */

    And this one too:
    ls -p | grep /


    If You Like This Please Leave a Comment Or Share this Post

    Full Softwares Android Apps
    • Blogger Comments
    • Facebook Comments

    0 comments:

    Post a Comment

    Item Reviewed: How to show directory only with ls command Rating: 5 Reviewed By: Unknown
    Scroll to Top