Linux command
mkfile 命令
文件
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Create file of size
mkfile [100m] [filename]
Create sparse file
mkfile -n [1g] [filename]
Create file in bytes
mkfile [1048576] [filename]
Create multiple files
mkfile [10m] [file1] [file2]
Verbose output
mkfile -v [100m] [filename]
说明
mkfile creates files of specified size. It can create empty files or sparse files. The tool is useful for testing and creating disk images. Sparse files don't allocate full space.
参数
- -n
- Create sparse file.
- -v
- Verbose output.
- --help
- Display help information.
FAQ
What is the mkfile command used for?
mkfile creates files of specified size. It can create empty files or sparse files. The tool is useful for testing and creating disk images. Sparse files don't allocate full space.
How do I run a basic mkfile example?
Run `mkfile [100m] [filename]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n do in mkfile?
Create sparse file.