Finding, Archiving and Moving Files: find, xargs, tar, gzip/zstd, zip, rsync, diff and Checksums
find -mtime +7 does not find files older than 7 days as people assume, but files at least 8 days old; read the list with -print before deleting, put -delete last and hand file names to xargs with -print0 | xargs -0. We cover building Bookstore's release package with tar --zstd, the difference between gzip, xz and zstd, the trailing / and --delete trap in rsync, and verifying the package with sha256sum, cmp and diff, with real output.
15 Nov 2026
·
13 min
·
10