Anthony Lucia
asked on
Linux and Linux versions
I have been given access to what was called a "Linux server"
The problem is I am not told if its CeentOS, Red Hat, etc
Is there a simple command that will tell me the version of Linux, no matter what the version of Linux you are running?
Thanks
The problem is I am not told if its CeentOS, Red Hat, etc
Is there a simple command that will tell me the version of Linux, no matter what the version of Linux you are running?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
also cat /etc/redhat*
In most cases
cat /etc/*release
cat /etc/*release
In redhat & centos, Use this command dmesg | sed -n '3p'
It will show Linux distro, version details as well as kernel version.
In Ubuntu & Debian, Use this command dmesg | sed -n '4p'
It will show Linux distro, version details as well as kernel version.
In Ubuntu & Debian, Use this command dmesg | sed -n '4p'
if it's a red hat or variant, you can do cat /etc/redhat-release and it will show the OS version