How to check the installed CUDA version in Ubuntu?

cat /usr/local/cuda/version.txt

06

stackoverflow.com/a/42122965

See also: How did I downgrade CUDA from 10.1 to 10.0 in Ununtu 18.04?