I just setup an EC2 instance running Linux. Is there a way to get the version/distribution of Linux that is running on the instance via the terminal?
feedback
|
|
For distro info:
For Kernel/architecture (as mentioned previously):
| |||
|
feedback
|
|
The portable command for Linux Standard Base-compatible distributions (which is pretty much everything popular) is
If you're on RedHat, SuSE, Ubuntu, Debian, or anything else derived from those (Fedora, CentOS, whatever), this command will work. Otherwise, you'll have to figure out some distro-specific info. RedHat, for example again, installs a package named redhat-release and creates a file in /etc:
But you really should use lsb_release if it's available. If you're just doing it visually, | |||||||
feedback
|
|
| ||||
|
feedback
|