BASH: Shell command to list only directories in the current working directory

To list only directories of your current working directory you can use below command

find ./* -maxdepth 0 -type d -exec basename {} \;

Comments

Popular posts from this blog

grep: unknown device method

Uploading files to FTP/SFTP using CURL

How to find outgoing IP in Linux ?