Files
tldr/pages.zh/common/mkfile.md

16 lines
423 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mkfile
> 创建任意大小的空文件。
> 更多信息:<https://manned.org/mkfile>。
- 创建一个15千字节的空文件
`mkfile -n {{15k}} {{path/to/file}}`
- 创建一个指定大小和单位(字节、千字节、兆字节、吉字节)的文件:
`mkfile -n {{size}}{{b|k|m|g}} {{path/to/file}}`
- 创建两个各为4兆字节的文件
`mkfile -n {{4m}} {{first_filename}} {{second_filename}}`