how to list files in a directory linux command terminal code example Example: list all files in a directory and subdirectory linux find . -type f -follow -print