EnderUNIX Team.

EnderUNIX tips

Mail to My Friend , Home Page

[ Linux ]

"Size of RAM in Linux Systems" - Metin KAYA - (2007-11-14 21:50:28)   [8737]

This command gives the size of RAM of a machine in bytes:

[metin@enderunix ~]# ls -l /proc/kcore
-r-------- 1 root root 268439552 Nov 14 09:41 /proc/kcore

For instance, the RAM is 256 MB in the system above.

/proc is a special virtual filesystem. Hence, the files of it do NOT reserve any place in disk. Deleting files from /proc directory does not increase the disk space, even damages the system hardly.

[metin@enderunix ~]# du -h /proc/kcore
0 /proc/kcore

Mail to My Friend , Home Page