how to clear ram cache in ubuntu 20.04 code example
Example 1: how to clear memory in ubuntu 18.04
# Clear PageCache, dentries and inodes.
sync; echo 3 > /proc/sys/vm/drop_caches
Example 2: how to clear memory in ubuntu 18.04
sync; echo 1 > /proc/sys/vm/drop_caches