On the raspberry pi 3 for checking temperature of CPU core there are two ways.
First method if you are running official raspbian, second method for any other Linux distro like Kali
$ vcgencmd measure_temp
$ cat /sys/class/thermal/thermal_zone0/temp
Both are reading 45 degree Celsius