We have discussed Ubuntu basic system information in the previous post, Same as let us do in the CentOS, Fedora and RedHat.
Your CPU processor Model:
# grep -i 'model name' /proc/cpuinfo | uniq
model name : Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz
model name : Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz
Find number of core processor :http://thelinuxfaq.com/manage/add-post.php
# lscpu
CPU(s): 4
CPU(s): 4
Find out OS Version:
Centos:
# cat /etc/redhat-release
CloudLinux Server release 6.5 (Pavel Popovich)
CloudLinux Server release 6.5 (Pavel Popovich)
RedHat:
# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Release: 5.1
Codename: Tikanga
(or)
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Release: 5.1
Codename: Tikanga
(or)
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Fedora :
# lsb_release -a
or
# lsb_release -a|grep Release
Release: 17
or
# cat /etc/redhat-release
Fedora release 17 (Beefy Miracle)
or
# cat /etc/issue.net
Fedora release 17 (Beefy Miracle)
or
# lsb_release -a|grep Release
Release: 17
or
# cat /etc/redhat-release
Fedora release 17 (Beefy Miracle)
or
# cat /etc/issue.net
Fedora release 17 (Beefy Miracle)
Whether my system is 32 bit o 64 bit?
# python -c 'import struct;print( 8 * struct.calcsize("P"))'
32
# python -c 'import struct;print( 8 * struct.calcsize("P"))'
64
32
# python -c 'import struct;print( 8 * struct.calcsize("P"))'
64
(or)
#uname -m (32 Bit)
i686
#uname -m (64 Bit)
x86_64
i686
#uname -m (64 Bit)
x86_64
(or)
# getconf LONG_BIT
32
# getconf LONG_BIT
64
32
# getconf LONG_BIT
64
Find Kernel Version:
# uname -r
2.6.32-71.29.1.el6.x86_64
# uname -r
3.5.3-1.fc17.i686
uname -r
2.6.18-53.el5
# uname -mrs
Linux 2.6.32-71.29.1.el6.x86_64 x86_64
# rpm -q kernel
kernel-2.6.32-71.29.1.el6.x86_64
kernel-2.6.32-431.11.2.el6.x86_64
2.6.32-71.29.1.el6.x86_64
# uname -r
3.5.3-1.fc17.i686
uname -r
2.6.18-53.el5
# uname -mrs
Linux 2.6.32-71.29.1.el6.x86_64 x86_64
# rpm -q kernel
kernel-2.6.32-71.29.1.el6.x86_64
kernel-2.6.32-431.11.2.el6.x86_64
Comments (0)