#!/bin/sh # get written data to disk (not that its guaranteed) sync # (drop the unmodified pages) echo 3 | sudo dd of=/proc/sys/vm/drop_caches 2>/dev/null