Create File is menu option 4, marked [unstable]. It writes a large file filled with ASCII zero characters (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kaladoodotlua/LRhub/llms.txt
Use this file to discover all available pages before exploring further.
'0', byte value 48) of a specified gigabyte size to a chosen destination directory. The file is written in 64 MB chunks with a live progress bar that updates in place, showing write percentage, estimated time remaining, and a visual fill indicator.
Input Prompts
Destination Path
Enter the full absolute path of the directory where the file should be written. The directory will be created automatically if it does not exist.
Use full absolute paths like
/home/username/dir. The shorthand ~/dir is not supported and will not expand correctly.What the Tool Does
Create Destination Directory
Runs
mkdir -p <destination> to ensure the target directory exists before attempting to write.Check Available Disk Space
Queries
df -B1 --output=avail <destination> to get the exact number of free bytes. If the requested file size exceeds available space, the tool exits with an error showing both figures.Write in 64 MB Chunks
Opens the output file and writes chunks of 64 MB at a time, each chunk consisting of the ASCII character
'0' repeated, until the total target size is reached.Example Interaction
Output File Naming
The output file is placed directly inside the destination directory. Its name is the size in GB followed by_gb, with no file extension:
| Requested Size | Output File Name |
|---|---|
| 1 GB | 1_gb |
| 5 GB | 5_gb |
| 20 GB | 20_gb |
/home/user/testfiles is saved as:
Error Cases
| Condition | Message |
|---|---|
| Size is less than 1 GB | ! Size cannot be smaller than 1 GB |
| Not enough free disk space | ! Not enough free space! Input: X.XX GB, Available: X.XX GB |
| Free space cannot be determined | ! Could not determine free space on target drive |
| File open/write failure | ! File operation failed: <error message> |