Use dd or a dedicated tool:
Most Linux distributions provide a SHA256 checksum . After downloading, you should use a tool to ensure the file wasn't corrupted or tampered with: Windows: Use PowerShell: Get-FileHash C:\path\to\file.img Linux/macOS: Use the terminal: sha256sum filename.img linux img download