#!/bin/sh if [ "$(id -u)" -ne 0 ] then echo "Please run as root." exit 1 fi echo 3 > /proc/sys/vm/drop_caches echo "cache cleared."