Change Swap size on a running linux machine

linux, swap
Make all swap off sudo swapoff -a Resize the swapfile sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 Make swapfile usable sudo mkswap
Davide Andreazzini

Linux - Freeing RAM without rebooting

linux, ram, free, bash
Simple command to free RAM on linux without rebooting #!/bin/bash sync; echo 1 > /proc/sys/vm/drop_caches; echo 2 > /proc/sys/vm/drop_
Davide Andreazzini