Search This Blog

ls: list only directories

  • Method 1:
    ls -d */
  • Method 2:
    ls -l | grep '^d'
  • Method 3:
    find . -type d -maxdepth 1 -mindepth 1



No comments:

Post a Comment