Hashdeep: Advanced File Integrity Verification for Linux Users

watch 2m, 40s
views 2

12:54, 15.04.2026

Article Content
arrow

  • Overview of hashdeep
  • Steps to Install hashdeep on Linux
  • 1. Computing File Hashes
  • 2. Recursively Hashing Files in Directories
  • 3. Storing Hash Outputs in Files
  • 4. Checking File Integrity with hashdeep
  • 5. Creating Multiple Hash Types Simultaneously
  • Final Thoughts

There is a diversity of tools that can significantly help with the security aspects and general administration of the system. Among all these tools, we can recommend one that is used for the advanced integrity verification of the file. Hashdeep is a fantastic option in case you need file integrity checking or verification of the hashes.

In this guide, we will discuss what a Hashdeep is and some peculiarities of its installation, and usage. We will specifically discuss its functioning in the Linux environment.

Overview of hashdeep

Hashdeep is one of those great tools that is necessary for working with hashes of files. It can be used for the verification and comparison of the files created by MD5 or SHA-256-like functions. File hash also crown as cryptographic hash is a specific string of characters created by a mathematical algorithm.

A couple of the most frequent user cases for this tool are:

  • Digital forensics. Checking the files’ integrity in the digital forensics sphere.
  • Identifying the integrity of the file and whether it has not corrupted during a certain time period.
  • Restoration. Guarantee that during the recovery process, the data is consistent.

Steps to Install hashdeep on Linux

Prior to the description of the most common user cases, let’s initially install Hashdeep on your system. Depending on the used distributive, the process might be slightly different for most users:

For Arch users, use the following command:

sudo pacman -S hashdeep

For the users of Mint/Debian/Ubuntu:

sudo apt install hashdeep

For FreeBSD:

sudo pkg install hashdeep

For Rocky, Fedora, RHEL, AlmaLinux, Rocky:

sudo yum install hashdeep

For Alpine:

sudo apk add hashdeep

For Gentoo:

sudo emerge -a sys-apps/hashdeep

For OpenSUSE:

sudo zypper install hashdeep

1. Computing File Hashes

Probably the most common user case for the tool is computing file hashes. This case be done the following way:

hashdeep -c sha1 yt.png

In the command, you should use:

  • File name, in the command we specified yt.png, but you can use any needed.
  • The hash algorithm, here we have used sha1, but you can also specify md5 or sha256.

2. Recursively Hashing Files in Directories

For hashing all the files in a directory, use the following line:

hashdeep -c sha1 -r /path/to/the/specific/directory

3. Storing Hash Outputs in Files

For the storage of the hash outputs, you will need the following command:

hashdeep -r ravi > hashes.txt
cat hashes.txt

4. Checking File Integrity with hashdeep

One of the most used commands in the hashdeep is for verifying file integrity. To have the right verification process, you need to have a list of known hashes and compare the current file as the following:

hashdeep -a -k list.txt -r /home/ravi/ravi

In this command, ravi is a directory against which the list.txt is verified.

5. Creating Multiple Hash Types Simultaneously

To mention more than one algorithm simultaneously and calculate several types of hashes, you can use the following command:

hashdeep -c md5,sha1,sha256 -r /path/to/the/necessary/directory

Final Thoughts

Hashdeep is a great tool for Linux users for digital forensics, checks of file integrity, and more. The major benefit of the tool is in the support for the various algorithms so that sys admins and employees working in security can perform their work much more effectively.

Share

Was this article helpful to you?

VPS popular offers

-21.5%

CPU
CPU
2 Xeon Cores
RAM
RAM
2 GB
Space
Space
75 GB SSD
Bandwidth
Bandwidth
300 GB
wKVM-SSD 2048 HK Windows

26 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
Unlimited
MT5 KVM 8192 Windows

29.99 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
Unlimited
wKVM-SSD 8192 Windows

28.44 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
16 GB
Space
Space
150 GB SSD
Bandwidth
Bandwidth
Unlimited
10Ge-KVM-SSD 16384 Linux

231 /mo

/mo

Billed annually

-20.6%

CPU
CPU
6 Xeon Cores
RAM
RAM
8GB
Space
Space
100GB SSD
Bandwidth
Bandwidth
500GB
KVM-SSD 8192 HK Linux

59 /mo

/mo

Billed annually

-10.1%

CPU
CPU
4 Xeon Cores
RAM
RAM
2 GB
Space
Space
60 GB HDD
Bandwidth
Bandwidth
300 Gb
KVM-HDD HK 2048 Linux

6.26 /mo

/mo

Billed annually

-10%

CPU
CPU
10 Epyc Cores
RAM
RAM
64GB
Space
Space
400 GB NVMe
Bandwidth
Bandwidth
Unlimited
Keitaro KVM 65536
OS
CentOS
Software
Software
Keitaro

149.04 /mo

/mo

Billed annually

-20.4%

CPU
CPU
2 Xeon Cores
RAM
RAM
2 GB
Space
Space
30 GB SSD
Bandwidth
Bandwidth
300 GB
KVM-SSD 2048 HK Linux

18 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
Unlimited
KVM-SSD 8192 Linux

25.85 /mo

/mo

Billed annually

-24.7%

CPU
CPU
4 Xeon Cores
RAM
RAM
4 GB
Space
Space
50 GB SSD
Bandwidth
Bandwidth
4 TB
KVM-SSD 4096 Metered Linux

31 /mo

/mo

Billed annually

Other articles on this topic

cookie

Accept cookies & privacy policy?

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the HostZealot website.