File details
Filename
sh_sample_file_1MB.shSize1.0 MB (1048590 bytes)
MIME type
text/x-shExtension
.shSHA256
4ae8e9510c22a8a637f1e3bcd2639e7beee47ddd0fa6fae8961003d4aef8592dDownload commands
Use in scripts and tests
curl -L -o sh_sample_file_1MB.sh \
https://samplefile.com/samples/download/code/sh/sh_sample_file_1MB.sh/
wget -O sh_sample_file_1MB.sh \
https://samplefile.com/samples/download/code/sh/sh_sample_file_1MB.sh/
import requests
url = "https://samplefile.com/samples/download/code/sh/sh_sample_file_1MB.sh/"
resp = requests.get(url)
with open("sh_sample_file_1MB.sh", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/sh/sh_sample_file_1MB.sh/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("sh_sample_file_1MB.sh", buf);
# Download and verify SHA256
curl -L -o sh_sample_file_1MB.sh https://samplefile.com/samples/download/code/sh/sh_sample_file_1MB.sh/
echo "4ae8e9510c22a8a637f1e3bcd2639e7beee47ddd0fa6fae8961003d4aef8592d sh_sample_file_1MB.sh" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/sh/sh_sample_file_1MB.sh/").content
assert hashlib.sha256(data).hexdigest() == "4ae8e9510c22a8a637f1e3bcd2639e7beee47ddd0fa6fae8961003d4aef8592d"
More SH files
Other SH Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
sh_sample_file_200KB.sh |
200.0 KB | e435917c94c8012b… |
Download |
sh_sample_file_500KB.sh |
500.0 KB | da4d5706a1d364fd… |
Download |
sh_sample_file_50KB.sh |
50.0 KB | 9abf9b457a62d2b3… |
Download |
Learn more