List only directories

By | Sunday, March 18, 2007

To list only the directories in a directory use the following:

ls -v

To only list the directories that starts with ESX use the following

ls -v |grep “ESX”

Leave a Reply

Your email address will not be published. Required fields are marked *