XZ sample file
xz_sample_file_1MB.xz
1.0 MB
application/octet-stream
SHA256 verified
File details
Filename
xz_sample_file_1MB.xzSize1.0 MB (1048688 bytes)
MIME type
application/octet-streamExtension
.xzSHA256
8a83d661cbeeab18ad3bdf2373169fe775d876a3ce563957fd66f62a7c8b376aDownload commands
Use in scripts and tests
curl -L -o xz_sample_file_1MB.xz \
https://samplefile.com/samples/download/archive/xz/xz_sample_file_1MB.xz/
wget -O xz_sample_file_1MB.xz \
https://samplefile.com/samples/download/archive/xz/xz_sample_file_1MB.xz/
import requests
url = "https://samplefile.com/samples/download/archive/xz/xz_sample_file_1MB.xz/"
resp = requests.get(url)
with open("xz_sample_file_1MB.xz", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/archive/xz/xz_sample_file_1MB.xz/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("xz_sample_file_1MB.xz", buf);
# Download and verify SHA256
curl -L -o xz_sample_file_1MB.xz https://samplefile.com/samples/download/archive/xz/xz_sample_file_1MB.xz/
echo "8a83d661cbeeab18ad3bdf2373169fe775d876a3ce563957fd66f62a7c8b376a xz_sample_file_1MB.xz" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/archive/xz/xz_sample_file_1MB.xz/").content
assert hashlib.sha256(data).hexdigest() == "8a83d661cbeeab18ad3bdf2373169fe775d876a3ce563957fd66f62a7c8b376a"
More XZ files
Other XZ Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
xz_sample_file_200KB.xz |
200.1 KB | cf7160a2276059f3… |
Download |
xz_sample_file_500KB.xz |
500.1 KB | 2bb85341c51b0c33… |
Download |
xz_sample_file_50KB.xz |
50.1 KB | 5495333c96928cf7… |
Download |
Learn more