DEV Community

Emilio Romero
Emilio Romero

Posted on

How verify Windows ISO file in bash

If you want to check the integrity and authenticity of the data you have downloaded, follow these steps:

Download

Download the ISO file of the product you want and follow the installation instructions.

Hash

Go to the table at the end, select and copy the value of the language you just downloaded.

Open bash terminal

After successfully downloading the ISO file, open your bash terminal and type the following:

echo "HASH *FILE_NAME.iso" | shasum -a 256 --check
Enter fullscreen mode Exit fullscreen mode

If everything went well, the terminal should return:

FILE_NAME.iso: OK
Enter fullscreen mode Exit fullscreen mode

If the result was an OK, it will confirm that the file has not been damaged, modified or altered in any way compared to the original.

Example

echo "C8CXXX *Win11_22H2_Spanish_x64v2.iso" | shasum -a 256 --check
Enter fullscreen mode Exit fullscreen mode
Win11_22H2_Spanish_x64v2.iso: OK
Enter fullscreen mode Exit fullscreen mode

Connect with me on: GitHub or LinkedIn 👽

Top comments (0)