#file #arguments

app mkemptyfile

creates an empty file

1 unstable release

0.9.0 Mar 13, 2025

#13 in #arguments

Download history 130/week @ 2025-03-12

130 downloads per month

Unlicense OR CC0-1.0

9KB
124 lines

mkemptyfile

Version License MSRV Safe Rust Downloads

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.

Unlicense logo

Dependencies

~65KB