Creating Large Files Using Terminal
To create large files on macOS, you can use the Terminal app. Follow these steps:
-
Open Terminal: You can find Terminal in the Utilities folder within the Applications folder, or simply search for it using Spotlight.
-
Navigate to the Desired Directory: Use the
cd
command to navigate to the directory where you want to create the large file. For example, to navigate to your home directory, use:cd ~
-
Create the Large File: To create a large file filled with zeroes, you can use the
dd
command. The following command creates a file named “hugefile” with a block size of 100MB: