I have an ec2 instance of which I cannot tell the exact operating system.
I typed in uname -a and it shows:
2.6.18-274.7.1.el5xen #1 SMP Thu Oct 20 17:06:34 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
It’s not indicating whether it’s ubuntu, centOS, debian, or others. Anybody have any ideas?
lsb_release is one command to look into. Here’s the manpage: http://linux.die.net/man/1/lsb_release
Sample usage:
Or you can specify just the distributor id: