how to count number of files in a folder ubuntu code example Example: count number of files in directory linux find DIR_NAME -type f | wc -l