I am using Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz as I found out from cat /proc/cpuinfo. But I want to know exact hierarchy like how many sockets are there, and h
cat /proc/cpuinfo
You can look at the core id and cpu cores values in /proc/cpuinfo. They should provide the values you need.
core id
cpu cores
/proc/cpuinfo
Alternatively, look at the specifications page of your processor.