Thread
:
UNIX ls only directories (display only dirs and no files)
View Single Post
#
2
(
permalink
)
10-21-2006, 01:27 AM
monk
Senior Member
User
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power:
5
Use the combination of ls and grep:
Code:
ls -l | grep '^d'
monk
View Public Profile
Send a private message to monk
Visit monk's homepage!
Find all posts by monk