April 22, 2018

[Bash Tricks]: Listing only the directories using ls command

It took some time and effort to list the directories alone using ‘ls‘ command. The below option helps in showing that.

ls -d */

Listing only directories using ls command

 

Related Articles