Frequent Question: How Do I Search a Directory and Subdirectory in Linux?
Contents How Do I Search for Subdirectories in Linux? 3 Answers. Try Find /Dir -Type D -Name “Your_Dir_Name”. Replace /Dir with Your Directory Name, and...
Contents
How do I search for subdirectories in Linux?
3 Answers. Try find /dir -type d -name “your_dir_name” . Replace /dir with your directory name, and replace “your_dir_name” with the name you’re looking for. -type d will tell find to search for directories only.
How do I search for a directory in Linux?
How can I list directories only in Linux? 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.