unix command to check ram size code example Example 1: linux ram size $ cat /proc/meminfo Example 2: linux command to list directory size sudo du -sh /var