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