In order to find total RAM in your system, give following command:
$ cat /proc/meminfo | awk '/^MemTotal/ {print $2/1024 " MB"}'
2008.07 MB
If you all information related to memory:
$ cat /proc/meminfo
Extra: Total CPU cores in your system:
$ cat /proc/cpuinfo | awk '/^processor/ {ncores++} END {print "Total cores = " ncores}'
Total cores = 2
$ cat /proc/meminfo | awk '/^MemTotal/ {print $2/1024 " MB"}'
2008.07 MB
If you all information related to memory:
$ cat /proc/meminfo
Extra: Total CPU cores in your system:
$ cat /proc/cpuinfo | awk '/^processor/ {ncores++} END {print "Total cores = " ncores}'
Total cores = 2
No comments:
Post a Comment