unix – find all files in folder with or without size

To find all files (without following symlinks):

find -P . -type f

To find all files along with their corresponding size in bytes:

find -P . -type f -exec stat -c '%s      %n' {} \;


Post a Comment

Your email is never published nor shared. You're allow to say what you want...