Skip to content

Instantly share code, notes, and snippets.

View robmorin's full-sized avatar

Rob VE2XTC robmorin

View GitHub Profile
@olivertappin
olivertappin / create-large-file.sh
Last active July 29, 2024 17:23
Create a large file for testing
# Please note, the commands below will create unreadable files and should be
# used for testing file size only. If you're looking for something that has
# lines in it, use /dev/urandom instead of /dev/zero. You'll then be able to
# read the number of lines in that file using `wc -l large-file.1mb.txt`
# Create a 1MB file
dd if=/dev/zero of=large-file-1mb.txt count=1024 bs=1024
# Create a 10MB file
dd if=/dev/zero of=large-file-10mb.txt count=1024 bs=10240