We can use the following commands to check number of cores in Linux/Unix operating systems
kstat cpu_info|grep core_id