Created
September 23, 2020 15:08
-
-
Save flavioheleno/fb0df8906fc1d8e6947f768d02b291a2 to your computer and use it in GitHub Desktop.
Create a 2GB ramdisk on MacOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set eox -pipefail | |
diskutil partitionDisk $(hdiutil attach -nomount ram://2048000) 1 GPTFormat APFS 'ramdisk' '100%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment