(Bash) List files in a recursive manner

Problem: find lists not only files but also all the directories Solution: Specify -type f option to find, e.g.

find ~/Documents -type f

Note the use of a single hyphen instead of double hyphens.

References:

Written on August 30, 2021