print all directories and subdirectories only linux but not files code example Example: list all files in a directory and subdirectory linux find . -type f -follow -print