Skip to main content

Create one or more empty files of any size.

# To create an empty file of 15 kilobytes:
mkfile -n <15k> <file_name>

# To create a file of a given size and unit (bytes, KB, MB, GB):
mkfile -n <size><b|k|m|g> <file_name>

# To create two files of 4 megabytes each:
mkfile -n <4m> <first_file_name> <second_file_name>