From e5ace69c639bd6c3c6f5636ccf0d72eeac7838aa Mon Sep 17 00:00:00 2001 From: Franklin Date: Fri, 25 Jun 2021 10:41:53 +0200 Subject: [PATCH] Docs: Replaced dd command with fallocate/mkfile --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 465f9dc..77636fc 100644 --- a/README.md +++ b/README.md @@ -40,14 +40,18 @@ You can download them from my server. Or generate them yourself: -The `of=` specifies the output filename and `bs=` the filesize in bytes -where the M suffix is megabytes and G is gigabytes. - ```sh -# 100mb.bin -dd if=/dev/zero of=100mb.bin bs=100M count=1 +# on linux +for i in 100m 10m 5m 1m; do fallocate -l $i "${i}b.bin"; done + +# on macOS +for i in 100m 10m 5m 1m; do mkfile -n $i "${i}b.bin"; done ``` +These commands only create the files in the filesystem. +No bytes are actually written to the storage. +The suffix `m` is megabytes and `g` is gigabytes and so on. + Note on testing ---------------