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