Skip to content

Clear RAM Memory Cache, Buffer and Swap Space on Linux

Notifications You must be signed in to change notification settings

andyhoanghuu/linux-flush-ram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Clear RAM Memory Cache, Buffer and Swap Space on Linux

Main Functionalities

Like any other operating system, GNU/Linux has implemented a memory management efficiently and even more than that. But if any process is eating away your memory and you want to clear it, Linux provides a way to flush or clear ram cache.

Excute

Cron

  • sudo nano -w flushram.sh
  • chmod 755 flushram.sh
  • crontab -e press: 1
  • 0 2 * * * /home/flushram.sh

For example, append the below line, save and exit to run it at 2am daily.

Manual

sudo sh flushram.sh

About

Clear RAM Memory Cache, Buffer and Swap Space on Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages