How to checksum then compare your files in Linux

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.

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top