From 6de016f61de20b9d37e810f0a614be49fca5813e Mon Sep 17 00:00:00 2001 From: Michael Kwardakov Date: Tue, 22 Mar 2016 11:42:16 +0300 Subject: [PATCH] Add commands for creating large files --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index aefeace..cdc7713 100644 --- a/README.md +++ b/README.md @@ -280,6 +280,11 @@ mkdir empty && rsync -r --delete empty/ some-dir && rmdir some-dir setfacl --restore=permissions.txt ``` +- To create big dummy files really fast, use `truncate` (creates [sparse file](https://en.wikipedia.org/wiki/Sparse_file)) or + - `fallocate`: available for ext4, xfs, btrfs and ocfs2 filesystems + - `xfs_mkfile`: almost any filesystems, comes in xfsprogs package + - `mkfile`: is there for Unix-like systems like Solaris, Mac OS X etc + ## System debugging - For web debugging, `curl` and `curl -I` are handy, or their `wget` equivalents, or the more modern [`httpie`](https://github.com/jkbrzt/httpie).