shell script to list all files in a directory and subdirectories code example
Example 1: list all files in a directory and subdirectory linux
find . -type f -follow -print
Example 2: bash list all files in directory and subdirectories
# Bash-specific
# syntax
ls -R <file-or-directory-to-find>
# example
ls -R *hotographi*