- Forums
- Linux Hosting
- Command To List Directories Only
Use This Command In Linux Shell To Show Or Display Only The Folders Or Directories In Single Command And Leave Out The Files Except Only Demonstrate The Directory Files [1330], Last Updated: Mon Jun 24, 2024
Webune Support
Fri Jan 29, 2010
0 Comments
397 Visits
Welcome to Webune
Webune Offers Dedicated Linux Servers. Sign up today with Webune.
If you are a Webune customer and you have a linux server you might find this command helpful.
this command shows you only the directories in a list. for example if you only want to find only the directory names and leave out the file names.
ls -l | grep "^d"
hope that helps