Skip to content

Instantly share code, notes, and snippets.

@rxin
rxin / ramdisk.sh
Last active November 1, 2026 09:44
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then