mkemptyfile

Crates.iomkemptyfile
lib.rsmkemptyfile
version0.9.2
created_at2025-03-13 01:02:04.859022+00
updated_at2025-05-27 20:43:42.304475+00
descriptioncreates an empty file
homepagehttps://gitlab.com/hsn10/mkemptyfile
repositoryhttps://gitlab.com/hsn10/mkemptyfile.git
max_upload_size
id1590373
size14,857
Radim Kolar (hsn10)

documentation

README

mkemptyfile

Version License MSRV Safe Rust Downloads

About

Program mkemptyfile creates an empty file of specified size. Content can be zeroes or randomly generated with MCG59 generator.

Arguments

You need to specify file name and size. Desired file size can be specified in different units (B,K,M,G,T,P,E) or by reference file (-r).

If you do not want new file to have zero 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

Commit count: 0

cargo fmt