Skip to content

Simple script to update and verify the checksums of filenames.

License

Notifications You must be signed in to change notification settings

zubfatal/simple-file-integrity-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Simple File Integrity Checker

Simple script to update and verify the checksums of filenames.

Usage

sfic.sh -f <filename> <options>

Options

Option Description
-f, --file <filename> Filename with list of files/paths
-c, --check, --verify Verify checksums
-u, --update Update checksums
-h, --help Show help
-V Show program version and exit

Filename example

Each line represent a filename or path (wildcards can be used). Lines prefixed with # or ; is excluded.

/etc/passwd

# MySQL related config files
/etc/mysql/*

# Apache2 config files
/etc/apache2/*

NOTE:

The path/file in the input file is passed directly to md5sum, stderr is sent to /dev/null so if the user does not have permission to view the files, all errors will be hidden.

A file containing the filenames and checksums, will be placed in the same directory as the input file, and have a .md5 extension.

Requirements

Requires md5sum command.

Debian/ubuntu

sudo apt-get install coreutils

Changelog

  • v1.0 - Initial release

License

This project is licensed under the terms of the MIT license.

About

Simple script to update and verify the checksums of filenames.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages