Tuesday, January 8, 2013

How Do I Find Out My Linux/unix Distribution Name, Version and Kernel Version?

How to see My Linux/unix Distribution Name and Version?
======================================================

1) # cat /etc/*-release


[root@localhost ~]#
[root@localhost ~]# cat /etc/*-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)
Red Hat Enterprise Linux Server release 6.1 (Santiago)
[root@localhost ~]#


2)  # lsb_release -a



[root@localhost ~]# lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 6.1 (Santiago)
Release:        6.1
Codename:       Santiago
[root@localhost ~]#


[root@orarnddb ~]# lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: OracleServer
Description:    Oracle Linux Server release 6.3
Release:        6.3
Codename:       n/a



How Do I Find Out My Linux/unix Kernel Version?
===============================================

# uname -a

# uname -mrs

# cat /proc/version

[root@orarnddb ~]#
[root@orarnddb ~]# uname -a
Linux orarnddb 2.6.39-200.24.1.el6uek.x86_64 #1 SMP Sat Jun 23 02:39:07 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@orarnddb ~]#
[root@orarnddb ~]#
[root@orarnddb ~]#
[root@orarnddb ~]# uname -mrs
Linux 2.6.39-200.24.1.el6uek.x86_64 x86_64
[root@orarnddb ~]#
[root@orarnddb ~]#
[root@orarnddb ~]# cat /proc/version
Linux version 2.6.39-200.24.1.el6uek.x86_64 (mockbuild@ca-build44.us.oracle.com) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Sat Jun 23 02:39:07 EDT 2012
[root@orarnddb ~]#