I am using windows subsystem for linux (WSL) and I am writing a bash script to check the battery temperature. Information related to battery can be accessed in the directory "/sys/class/power_supply/battery". The information for battery temperature is available in the file temp (which is a read only file). when i output the content of the file,it gives me a number which I think is the battery temperature but there is no temperature unit associated with it. In my case,my battery temperature is shown as 256. Can anybody tell me what is the temperature unit associated with it?
↧