or you could try ```grep -c ^processor /proc/cpuinfo```, which will count the number of lines starting with the word processor in the file /proc/cpuinfo, giving you the total number of cores:

```
(master)guilc@milou2:~$ grep -c ^processor /proc/cpuinfo
16
```