PDA

View Full Version : [ubuntu] clear cached memory scripting help



rburkartjo
February 21st, 2009, 12:53 PM
need some help and i know the following is wrong. i first need to switch to root either sudo su or sudo -i and then run the second line. see below
sudo su echo 3 > /proc/sys/vm/drop_caches

tks/cheesemaker

unutbu
February 22nd, 2009, 03:40 PM
Try

echo 3 | sudo tee /proc/sys/vm/drop_caches

rburkartjo
February 24th, 2009, 11:42 PM
tks un that did the trick/cheesemaker