1 unstable release
0.9.0 | Mar 13, 2025 |
---|
#13 in #arguments
130 downloads per month
9KB
124 lines
mkemptyfile
About
This program creates an empty file of specified size. Content can be zeroes or randomly generated.
Arguments
You need to specify file name and size. Desired file size can be specified in different units (B,K,M,G,T) or by reference file (-r). If you do not want new file to have 00 content, option -g will generate random filler data.
Program Exit codes
- 0 Success
- 1 incorrect command line arguments
- 2 incorrectly specified file size
- 3 can not create file
License
This is free and unencumbered software released into the public domain.
This code can be used under terms of CC0 or the Unlicense.
Dependencies
~65KB