Rewrite empty files create command as oneliner

This commit is contained in:
Michael Kwardakov 2016-09-28 16:17:49 +03:00
parent 6de016f61d
commit 8e02cadcb8

View file

@ -280,10 +280,7 @@ mkdir empty && rsync -r --delete empty/ some-dir && rmdir some-dir
setfacl --restore=permissions.txt setfacl --restore=permissions.txt
``` ```
- To create big dummy files really fast, use `truncate` (creates [sparse file](https://en.wikipedia.org/wiki/Sparse_file)) or - 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).
- `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 ## System debugging