Skip to content

Commit 6de016f

Browse files
Michael Kwardakovmkwardakov
authored andcommitted
Add commands for creating large files
1 parent acf1191 commit 6de016f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ mkdir empty && rsync -r --delete empty/ some-dir && rmdir some-dir
280280
setfacl --restore=permissions.txt
281281
```
282282

283+
- To create big dummy files really fast, use `truncate` (creates [sparse file](https://en.wikipedia.org/wiki/Sparse_file)) or
284+
- `fallocate`: available for ext4, xfs, btrfs and ocfs2 filesystems
285+
- `xfs_mkfile`: almost any filesystems, comes in xfsprogs package
286+
- `mkfile`: is there for Unix-like systems like Solaris, Mac OS X etc
287+
283288
## System debugging
284289

285290
- For web debugging, `curl` and `curl -I` are handy, or their `wget` equivalents, or the more modern [`httpie`](https://github.com/jkbrzt/httpie).

0 commit comments

Comments
 (0)