Back
Please note that */ is the pattern that matches all of your subdirectories in your current directory (* would match all files and subdirectories; / restricts it to the directories). Similarly, to list all the subdirectories under /home/alice/Documents, use
ls -d /home/alice/Documents/*/
Want to be a Linux expert? Come and join this Linux course
31k questions
32.8k answers
501 comments
693 users