Is it possible to check using shell whether or not Cyanogenmod is installed on a device?
In other words, something like
uname -a (which tells the system Linux version and architecture).
Can the version be determined as well?
I tried to do
Another way is to simply go to Settings→About phone, where you should see (depending on your CyanogenMod version) an item "CyanogenMod updates", and (with all CM versions) "CyanogenMod-Version":
In my CM12, I can do:
and the result it shows is:
If you don't see