how to free memory in linux command code example
Example 1: clear ram linux
sudo sync; echo 3 > /proc/sys/vm/drop_caches
Example 2: linux how to free memory
echo 2 > /proc/sys/vm/drop_caches
sudo sync; echo 3 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches