From the BlogSubscribe Now

How to check which version of Ubuntu server you’re running

I ran into this issue today. I wanted to see the Ubuntu version on my VM. The -uname -a command showed the machine name, but not the distribution info. So I found reference to a file in the /etc/ folder. Try reading the content of this file if you need the distribution version info: