2018-10-20 12:08:04 +01:00
|
|
|
# mkfile
|
|
|
|
|
2024-01-25 05:28:11 +00:00
|
|
|
> Create empty files of any size.
|
2022-12-04 05:07:04 +00:00
|
|
|
> More information: <https://manned.org/mkfile>.
|
2018-10-20 12:08:04 +01:00
|
|
|
|
|
|
|
- Create an empty file of 15 kilobytes:
|
|
|
|
|
2022-12-06 06:47:56 +00:00
|
|
|
`mkfile -n {{15k}} {{path/to/file}}`
|
2018-10-20 12:08:04 +01:00
|
|
|
|
|
|
|
- Create a file of a given size and unit (bytes, KB, MB, GB):
|
|
|
|
|
2022-12-06 06:47:56 +00:00
|
|
|
`mkfile -n {{size}}{{b|k|m|g}} {{path/to/file}}`
|
2018-10-20 12:08:04 +01:00
|
|
|
|
|
|
|
- Create two files of 4 megabytes each:
|
|
|
|
|
2020-05-22 13:31:24 +01:00
|
|
|
`mkfile -n {{4m}} {{first_filename}} {{second_filename}}`
|