How do I list all directories in Linux?

How do I list all directories in Linux?
Answer
Linux or UNIX-like system use the ls command to list files and directories. However, ls does not have an option to list only directories. You can use combination of ls command and grep command to list directory names only. You can use the find command too.
 

Tìm kiếm

Back
Top