mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-24 04:06:28 +08:00
Add commands for creating large files
This commit is contained in:
parent
acf1191bad
commit
6de016f61d
1 changed files with 5 additions and 0 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue