How to know what version of Linux is being used (Red Hat)

Some commands to find out what version of Linux is running on a system, along with kernel and CPU types.

Note: These commands have only been tested on a Red Hat environment.

1) Get Linux version:

# cat /etc/issue
e.g. Red Hat Enterprise Linux Workstation release 6.2 (Santiago)

2) Get kernel type:

# uname -m

64-bit kernel = x86_64
32-bit kernel = i386, i486, i586, i686

3) Get CPU type:

# cat /proc/cpuinfo | grep flags     (or cat /proc/cpuinfo for more general information)

Sample output:
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni ssse3 cx16 sse4_1 hypervisor lahf_lm dts

Look for the following flags (as highlighted in blue above):
16-bit processor = rm
32-bit processor = tm
64-bit processor = lm

This entry was posted in Computers and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *