Powered by OPF
OPF Q&A Static Archive
133 questions · 234 answers · 193 comments · 172 tags · 118 contributors · archived August 2026
Archived copy. This is a static snapshot of the OPF community Q&A (qanda.digipres.org), preserved from its Question2Answer database. It is read-only and nothing here has been edited since capture in August 2026. To ask new questions, use the OPF community on GitHub.

Is checking fixity at the folder level sufficient for knowing if any files within that folder that been altered?

1
votes

1 answer

1
votes

Yes, depending on the method used for computing the checksums and what types of changes you are trying to identify.  One solution is to create a tempory archive of the folder and compute the checksum on that file.  The following command, using standard GNU/Linux tools will compute a checksum and can be used to identify any change to the files' content, name, persmission, and/or directory structure.

$ tar -cf - somedir | md5sum

This uses the tar command to create a single archive file for the folder and its contents.  The c option creates the archive, the f option specifies a file to save the archive to, the - sets the saved-to file as stdout (temporary), the | character directs the created archive to the next command, md5sum, which computes the checksum.

 

One caveat, this will not indicate which specific files changed (for that a tool like md5deep can be used).  Source and additional options/discussion:  https://unix.stackexchange.com/questions/35832/how-do-i-get-the-md5-sum-of-a-directorys-contents-as-one-sum