Skip to content

Instantly share code, notes, and snippets.

@rhoconlinux
Created October 21, 2015 18:07
Show Gist options
  • Select an option

  • Save rhoconlinux/f2d8759b50a0dc9ae83b to your computer and use it in GitHub Desktop.

Select an option

Save rhoconlinux/f2d8759b50a0dc9ae83b to your computer and use it in GitHub Desktop.
freem script
#!/bin/bash
clear
free -m
sudo sync && sudo sysctl -w vm.drop_caches=3
sudo swapoff -a
sudo swapon -a
sudo sync && sudo sysctl -w vm.drop_caches=3
free -m
sudo fstrim -v /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment