Linux Lite 7.6 Final Released - Click here for more


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clear Memory
#2
Unhide files in your home folder (Ctrl+H) add the following to the bottom of the .bashrc file on a new line:

Code:
alias clearmem="sudo sh -c 'echo 3 >/proc/sys/vm/drop_caches'"

Save and close the file. Then type:

Code:
source .bashrc

to activate the new alias.

Then every time you want to clear the memory, just type clearmem in a terminal. Lite Tweaks in 3.x does not work in series 2.x The above is a workaround.
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


Messages In This Thread
Clear Memory - by bfb - 01-29-2017, 09:40 AM
Re: Clear Memory - by Valtam - 01-29-2017, 01:53 PM
Re: Clear Memory - by bitsnpcs - 01-29-2017, 02:18 PM
Re: Clear Memory - by Valtam - 01-29-2017, 02:21 PM
Re: Clear Memory - by bfb - 01-30-2017, 04:11 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)