I have an iPhone paired with iTunes on my MacBook, and I would like to use Terminal to check whether an iOS update is available for that iPhone (using the last known state if the phone is not connected).
Is there a Terminal command that can do that?
for f in $HOME/L*/A*/M*/B*/*/Info.plist; do defaults read "$f" "Product Version"; done