linux show free memory code example
Example 1: Ram usage in linux
$ cat /proc/meminfo
Example 2: linux how to free memory
echo 2 > /proc/sys/vm/drop_caches
Example 3: free memory linux command
# sync; echo 1 > /proc/sys/vm/drop_caches
$ cat /proc/meminfo
echo 2 > /proc/sys/vm/drop_caches
# sync; echo 1 > /proc/sys/vm/drop_caches