The tmpfs filesystem provides a great way to have temporary storage in ram.


Mounting

sudo mount -t tmpfs -o size=20m tmpfs tmp

The -t tmpfs section says to use a tmpfs filesystem. The second tmpfs in the command is the name of the device.

Resize

sudo mount -o remount,size=XG <path>

" "