1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/mkfile.md

17 lines
397 B
Markdown
Raw Normal View History

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