From 30e7fd0280141225b0a558090fe63d803ea464b5 Mon Sep 17 00:00:00 2001 From: bonnie Date: Fri, 10 Jan 2020 01:05:47 +0800 Subject: [PATCH] add fallocate command to "Others" --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f98184..bc4b235 100644 --- a/README.md +++ b/README.md @@ -2893,7 +2893,12 @@ yes anything yes | rm -r large_directory ``` -##### Create dummy file of certain size instantly (e.g. 200mb) +##### Create large dummy file of certain size instantly (e.g. 10GiB) +```bash +fallocate -l 10G 10Gigfile +``` + +##### Create dummy file of certain size (e.g. 200mb) ```bash dd if=/dev/zero of=//dev/shm/200m bs=1024k count=200 # or