add fallocate command to "Others"

This commit is contained in:
bonnie 2020-01-10 01:05:47 +08:00
parent 6e8910bdd4
commit 30e7fd0280

View File

@ -2893,7 +2893,12 @@ yes anything
yes | rm -r large_directory 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 ```bash
dd if=/dev/zero of=//dev/shm/200m bs=1024k count=200 dd if=/dev/zero of=//dev/shm/200m bs=1024k count=200
# or # or