Saturday, February 17, 2018

list folder content by only directory names using the terminal

$ ls -d */
is the command that you need in the terminal that is opened in a certain folder to list only the sub-directory names and not the sub-directories content.
I use it for instance to make a text file to list music and ebook folders I have. 

No comments:

Blog Archive