Saturday, April 10, 2010

Command to list directories/folders in linux

To list directories under current path use the following command

[root@192.168.1.1]$ ls -l | grep ^d

This lists all the directories under the current directory.