linux check free ram code example Example: free memory linux command # sync; echo 1 > /proc/sys/vm/drop_caches