how to clean linux ram code example
Example 1: clear ram linux
sudo sync; echo 3 > /proc/sys/vm/drop_caches
Example 2: clear ram cache linux
sync; echo 1 > /proc/sys/vm/drop_caches
sudo sync; echo 3 > /proc/sys/vm/drop_caches
sync; echo 1 > /proc/sys/vm/drop_caches