XZ sample file
xz_sample_file_50KB.xz
50.1 KB
application/octet-stream
SHA256 verified
File details
Filename
xz_sample_file_50KB.xzSize50.1 KB (51260 bytes)
MIME type
application/octet-streamExtension
.xzSHA256
5495333c96928cf72bd17f35fe50862679728345cc65d6a5442cbbbf755ae95dDownload commands
Use in scripts and tests
curl -L -o xz_sample_file_50KB.xz \
https://samplefile.com/samples/download/archive/xz/xz_sample_file_50KB.xz/
wget -O xz_sample_file_50KB.xz \
https://samplefile.com/samples/download/archive/xz/xz_sample_file_50KB.xz/
import requests
url = "https://samplefile.com/samples/download/archive/xz/xz_sample_file_50KB.xz/"
resp = requests.get(url)
with open("xz_sample_file_50KB.xz", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/archive/xz/xz_sample_file_50KB.xz/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("xz_sample_file_50KB.xz", buf);
# Download and verify SHA256
curl -L -o xz_sample_file_50KB.xz https://samplefile.com/samples/download/archive/xz/xz_sample_file_50KB.xz/
echo "5495333c96928cf72bd17f35fe50862679728345cc65d6a5442cbbbf755ae95d xz_sample_file_50KB.xz" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/archive/xz/xz_sample_file_50KB.xz/").content
assert hashlib.sha256(data).hexdigest() == "5495333c96928cf72bd17f35fe50862679728345cc65d6a5442cbbbf755ae95d"
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_500KB.xz |
500.1 KB | 2bb85341c51b0c33… |
Download |
Learn more