Checksum-Utils β
Multiplatform file checksum tools
Checksum Utils is a CLI tool to manage the checksum of your files, focused on NAS systems.
β¨ Features
π» Install
-
Download the latest release from the releases page according to your operating system.
-
Move and rename the downloaded executable to your PATH, so you can use it from anywhere.
mv ./checksum-utils_linux-amd64 /usr/local/bin/checksum-utils
-
Give it execute permissions if necessary:
chmod 0755 /usr/local/bin/checksum-utils
π Usage
Create checksum files
This command reads the files in a folder, gets their checksums, and creates a file with the .sha512 extension with it, so you can have a record of the checksum of that file.
Let's say you want to create the checksum files for your folder "documents":
βββ ~
β βββ documents
β β βββ document-1.pdf
β β βββ document-2.ppt
β β βββ document-3.csv
β βββ music
β βββ pictures
β βββ videos
Use the command:
checksum-utils create ~/documents
This command will create a .sha512 checksum file for each file in your folder:
βββ ~
β βββ documents
β β βββ document-1.pdf
β β βββ document-1.pdf.sha512 <-- created by checksum-utils
β β β
β β βββ document-2.ppt
β β βββ document-2.ppt.sha512 <-- created by checksum-utils
β β β
β β βββ document-3.csv
β β βββ document-3.csv.sha512 <-- created by checksum-utils
β βββ music
β βββ pictures
β βββ videos
Check checksum files
This command reads the content of the files generated by the command "checksum-utils create ~/documents" and compares them with the original file to verify if the checksum remains the same.
Let's say you want to check the checksums of the files of your folder "documents":
βββ ~
β βββ documents
β β βββ document-1.pdf
β β βββ document-1.pdf.sha512
β β β
β β βββ document-2.ppt
β β βββ document-2.ppt.sha512
β β β
β β βββ document-3.csv
β β βββ document-3.csv.sha512
β βββ music
β βββ pictures
β βββ videos
Use the command:
checksum-utils check ~/documents
The command will display the results of the comparation of the current checksum of the file with the one stored in the file with the .sha512 extension:
βββ ~
β βββ documents
β β βββ document-1.pdf β
β β β
β β βββ document-2.ppt β
β β β
β β βββ document-3.csv β
β βββ music
β βββ pictures
β βββ videos
ποΈ Dev
You must have golang installed on your system.
-
Clone the project:
git clone https://github.com/JuanOrbegoso/checksum-utils.git
-
Install Go dependencies:
go mod download
-
Build:
make build
π§βπ» Author
Juan Orbegoso: