Linux LS command for Directories only

If you have a large folder that contains a lot of files but you only want to see what directories are in there, then this little snippet is for you:


ls -d -- */

You may decide to make an alias for it


echo "alias lld='ls -alFhd -- */'" >> ~/.bashrc


Tags: directorieslinuxlisttiplsfoldersaliasbashrc