commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
There are 17 alternatives - vote for the best!
-d: list directory entries instead of contents, and do not dereference symbolic links
This command would be useful when it is desirable to list only the directories. 'egrep' chooses only the lines that begin with 'd'.
to include hidden dirs use:
tree -adL 1
(with ls, requires 'ls -ad */ .*/')
If you can do better, submit your command here.
You must be signed in to comment.