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