👉 A subdirectory is a directory that contains only one level of child directories. Subdirectories are often used in Unix-like operating systems, such as Linux and macOS, to organize files or folders according to their content rather than their size. They can be created by using the /sub/ prefix followed by the name of the directory they contain. For example, '/home/user/sub/documents' would create a subdirectory called 'documents'.