Skip to content

Instantly share code, notes, and snippets.

@shanonvl
Last active July 23, 2017 21:39
Show Gist options
  • Save shanonvl/41b8d56dfb646889d8e45114efd9a081 to your computer and use it in GitHub Desktop.
Save shanonvl/41b8d56dfb646889d8e45114efd9a081 to your computer and use it in GitHub Desktop.
MacOS Snippets

MacOS Snippets

Helpful snippets for OSX / MacOS

Mount a RAM disk

ram://2097152 is the size, calculated as follows: * 2048.

1gb: diskutil erasevolume HFS+ 'ram-disk' `hdiutil attach -nomount ram://2097152`
2gb: diskutil erasevolume HFS+ 'ram-disk' `hdiutil attach -nomount ram://4194304`
3gb: diskutil erasevolume HFS+ 'ram-disk' `hdiutil attach -nomount ram://6291456`
4gb: diskutil erasevolume HFS+ 'ram-disk' `hdiutil attach -nomount ram://8388608`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment