From 6de016f61de20b9d37e810f0a614be49fca5813e Mon Sep 17 00:00:00 2001 From: Michael Kwardakov Date: Tue, 22 Mar 2016 11:42:16 +0300 Subject: [PATCH 1/2] 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). From 8e02cadcb8fe6c256c53281a5c47fd4d3d4b0782 Mon Sep 17 00:00:00 2001 From: Michael Kwardakov Date: Wed, 28 Sep 2016 16:17:49 +0300 Subject: [PATCH 2/2] Rewrite empty files create command as oneliner --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index cdc7713..ca3a109 100644 --- a/README.md +++ b/README.md @@ -280,10 +280,7 @@ 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 +- To create empty files quickly, use `truncate` (creates [sparse file](https://en.wikipedia.org/wiki/Sparse_file)), `fallocate` (ext4, xfs, btrfs and ocfs2 filesystems), `xfs_mkfile` (almost any filesystems, comes in xfsprogs package), `mkfile` (for Unix-like systems like Solaris, Mac OS). ## System debugging