Skip to content

Instantly share code, notes, and snippets.

View Bus42's full-sized avatar

Greg Brewton Bus42

View GitHub Profile
@Bus42
Bus42 / clearRAM.sh
Created January 7, 2020 04:48 — forked from pklaus/clearRAM.sh
A Script to Clear Cached RAM on Linux
#!/bin/bash
## Bash Script to clear cached memory on (Ubuntu/Debian) Linux
## By Philipp Klaus
## see <http://blog.philippklaus.de/2011/02/clear-cached-memory-on-ubuntu/>
if [ "$(whoami)" != "root" ]
then
echo "You have to run this script as Superuser!"
exit 1
fi