Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
gav
13y ago
0 comments
Share
Using `find` is nice to get just directories:
$ find . -type d -maxdepth 1
0 comments
default
newest
oldest
pnrao
13y ago
I use:
% ls -d */
VaucGiaps
13y ago
ls -al | grep ^d
ralph
13y ago
(Fails if a directory has a linefeed in its name followed by a 'd'. :-)
j
/
k
navigate · click thread line to collapse