Skip to content

Instantly share code, notes, and snippets.

@GregGallant
Created November 6, 2013 21:08
Show Gist options
  • Save GregGallant/7344114 to your computer and use it in GitHub Desktop.
Save GregGallant/7344114 to your computer and use it in GitHub Desktop.
Linux memory swap sweep (Ubuntu)
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment