LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


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'"
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: 1 Guest(s)