My Tech Notes
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment