How Do I Search for Subdirectories in Linux?
Contents 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...
Contents
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 find subdirectories in Linux?
Try any one of the following command:
- ls -R : Use the ls command to get recursive directory listing on Linux.
- find /dir/ -print : Run the find command to see recursive directory listing in Linux.
- du -a . : Execute the du command to view recursive directory listing on Unix.
Must Read
How do I find subdirectories?
Open Windows Explorer. Select Organize / Folder and Search options. Select the Search Tab. In the How to search section, select the Include subfolders in search results when searching in file folders option.