get list of all files in directory linux 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*