Last active
August 29, 2015 14:00
-
-
Save yuchan/11287826 to your computer and use it in GitHub Desktop.
Commands for Ramdisk for Mac
This file contains hidden or 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
#! /bin/bash | |
# create 512MB RamDisk | |
# (0.512(GB) * (1024^3)) / 512 | |
rm -rf ~/Library/Caches | |
diskutil erasevolume HFS+ 'RamDisk' `hdiutil attach -nomount ram://1073741` | |
ln -s /Volumes/Ramdisk ~/Library/Caches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment