Linux Tips 4: Finding out which Linux distribution and version is currently being used

|
When working on client SSH accounts where you were not responsible for choosing the service provider it can sometimes be hard to find out just which version of Linux is being used. Luckily there is a very simple method. I have tested this in Redhat, Cent OS, and Ubuntu distros with success. The command is: cat /etc/*-release On this server it prints out:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04"

With Redhat and Cent OS I find the output to be just one line, but it is informative nonetheless when searching for specific configuration or administration instructions.

0 comments:

Post a Comment