How to checksum then compare your files in Linux

  • Thread starter Thread starter Deleted member 178
  • Start date Start date
Status
Not open for further replies.
D

Deleted member 178

Thread author
hi,



The md5sum command can help you detect changes in system files...

must be run as superuser

Code:
# Make a list of system files and their checksums.
find /{bin,boot,sbin,lib} | while read a ; do [ -f "$a" ] && md5sum "$a" >> rootlist.txt ; done

then compare

Code:
# Compare the list with the files on your system.
md5sum -c rootlist.txt

thanks to Mute Ant (Linux Forum) for the commands
 
Status
Not open for further replies.