How do I print only a directory in Linux?

Đăng Khánh

New member
How do I print only a directory 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, find command, and grep command to list directory names only. You can use the find command too.
 

Tìm kiếm

Back
Top