Let's say I have a top level directory called /dir
and many sub directories. How do I search the subdirectories of /dir
to find the one called x/x/dir/x/x/x/target
?
This question is similar to, but not exactly what I am looking for: find command for certain subdirectories.
I am not looking for files, just directories with a particular name.
Best Answer
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 tellfind
to search for directories only.