Merge pull request #400 from mkwardakov/large-file

Add commands for creating large dummy files
This commit is contained in:
Joshua Levy 2017-01-16 15:29:56 -08:00 committed by GitHub
commit 4c209c7752

View file

@ -293,6 +293,8 @@ mkdir empty && rsync -r --delete empty/ some-dir && rmdir some-dir
setfacl --restore=permissions.txt
```
- 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
- For web debugging, `curl` and `curl -I` are handy, or their `wget` equivalents, or the more modern [`httpie`](https://github.com/jkbrzt/httpie).