if ! command -v nvidia-settings &> /dev/null then # command not found echo "" exit else # simply output the gpucoretemp as reported by the binary nvidia-settings -q gpucoretemp -t fi