Skip to content

Instantly share code, notes, and snippets.

@jimdiroffii
Created February 8, 2026 07:17
Show Gist options
  • Select an option

  • Save jimdiroffii/91d211891945fcae56642ac4615c8e08 to your computer and use it in GitHub Desktop.

Select an option

Save jimdiroffii/91d211891945fcae56642ac4615c8e08 to your computer and use it in GitHub Desktop.
Verify the size and file count of a directory, useful for quick comparison after a copy/sync operation
# size
du -sb ~/folder
# file count
find ~/folder -type f | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment