Linux OS Distribution Name and Version

      How to Find Out Distribution Name and Version of Linux OS


1.  $ lsb_release -a

To displays certain LSB (Linux Standard Base) and distribution-specific information.

 [root@3.5.5Biz-46~]# lsb_release -a

LSBVersion: 1.3

DistributorID: RedHatEnterpriseAS

Description:Red Hat Enterprise Linux AS release 4 (Nahant Update 1)

Release:4

Codename:NahantUpdate1

2. uname -a or uname -mrs

To Find Out useful information aboutyour linux distribution, kernel version, cpu information and more.

[root@3.5.5Biz-46~]# uname -a

Linux2.6.32-5-amd64 x86_64

Linux - Kernel name2.6.32-5-amd64 - Kernel version numberx86_64 - Machine hardware name (64 bit)

Linux computerName2.6.22.18-desktop-1mdv #1 SMP Mon Feb 11 13:53:50 EST 2008 i686 Intel(R)Pentium(R) 4 CPU 3.40GHz GNU/Linux

x86_64说明你是64位内核, 跑的是64位的系统.

i386, i686说明你是32位的内核, 跑的是32位的系统

3. cat /etc/*-release  or cat /etc/redhat-release

 To find out what version of Linux (distro) youare running

[root@3.5.5Biz-46~]# cat /etc/*-release

RedHat Enterprise Linux Server release 5 (Tikanga)

CentOS release 6.3 (Final)

4. cat /proc/version

T o see kernel versionand gcc version used to build the same:
[ root@3.5.5Biz-46~]# cat /proc/version

Linux version 2.6.32-279.5.2.el6.x86_64(mockbuild@c6b10.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat4.4.6-4) (GCC) ) #1 SMP Fri Aug 24 01:07:11 UTC 2012

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值