Showing posts with label linux version. Show all posts
Showing posts with label linux version. Show all posts

Monday, November 24, 2014

Check your Linux OS version or Name

Two very simple command for same:

cat /etc/issue
cat /etc/redhat-release

Just see the difference in output:






uname - Print kernel and system information. It's output will look like as below and tells you nothing about what OS is it:





Where,
  • 2.6.32-358 - Linux kernel version number
  • SMP - Kernel that supports multi core and multiple cpus.
The output can be interpreted with the following key:
2 – Kernel Version
6 – Major Revision
32 – Minor Revision
358.e16 – Fix/Revision Detail

cat /proc/version  - This output identifies the kernel version that is currently running. It includes the contents of /proc/sys/kernel/ostype, /proc/sys/kernel/osrelease, and /proc/sys/kernel/version files.



Find Distribution Version

Type the following command:
$ cat /etc/*release