Linux Lite 7.6 Final Released - Click here for more


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Free memory
#1
Hey everyone! I been Googling for an easy way to free up memory with a few terminal commands instead of using a program like Bleachbit. I searched the forum before posting here.

Found this but I keep getting permission denied!
http://blog.midnightmonk.com/225/linux/f...l#comments

Basically a quite convenient way to go about it.

Thank you.
I'v been bashing Windows way before Microsoft.....
Reply
#2
I use these occasionally.
free -m to see how much is being used
sudo sysctl -w vm.drop_caches=3 to clear it.
Reply
#3
I use this on my servers, add it to your .bashrc

Code:
alias flushmem="sudo sh -c 'echo 1 >/proc/sys/vm/drop_caches' && sudo sh -c 'echo 2 >/proc/sys/vm/drop_caches' && sudo sh -c 'echo 3 >/proc/sys/vm/drop_caches'"
Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."

[Image: X5qGkCg.png]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#4
Thank you! and I'm sorry I could not reply sooner. Had some things come up that kept me away from the computer.

I'll make a batch file to run those
I'v been bashing Windows way before Microsoft.....
Reply


Forum Jump:


Users browsing this thread: