Run cat /proc/cpuinfo | grep lmIf you get something printed out, it's 64 bit. If you get nothing, it's 32.
I have hard time in understanding the below provided cpuinfo , To me it looks like the machine has 2 physical processors with 8 core each but the output for below command is 32
grep ^processor /proc/cpuinfo | wc -l ==> 32
grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l ==>2
grep 'cpu cores' /proc/cpuinfo|uniq ==> 8
grep 'sibling' /proc/cpuinfo|uniq ==>
I am trying to write a script that will return info from the /proc/cpuinfo, /proc/meminfo and /proc/version files.
From the cpuinfo file, I want to return the cpu Mhz and model name.
I can get these via these commands
more /proc/cpuinfo | grep "model name" | head -n 1
more /proc/cpuinfo | grep "cpu MHz"
for the meminfo file, I want to get total memory, memory free and total used.