Method steps of how to view version information under Linux

  • 2021-07-10 21:30:52
  • OfStack

How to view version information under Linux, including digits, version information, CPU kernel information, CPU specific model, etc., the whole CPU information is clear.

1, # uname-a (Linux view version current operating system kernel information)


Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 athlon i386 GNU/Linux

2. # cat/proc/version (Linux View Current Operating System Version Information)


Linux version 2.4.20-8 (bhcompile@porky.devel.redhat.com)
 (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003

3, # cat/etc/issue or cat/etc/redhat-release (Linux View Version Current Operating System Release Information)


Red Hat Linux release 9 (Shrike)

4. # cat/proc/cpuinfo (Linux view cpu related information, including model, main frequency, kernel information, etc.)


    processor    : 0
   vendor_id     : AuthenticAMD
    cpu family    : 15
    model       : 1
    model name   : AMD A4-3300M APU with Radeon(tm) HD Graphics
    stepping     : 0
    cpu MHz     : 1896.236
    cache size    : 1024 KB
    fdiv_bug     : no
    hlt_bug     : no
    f00f_bug    : no
    coma_bug   : no
    fpu        : yes
    fpu_exception  : yes
    cpuid level   : 6
    wp        : yes
    flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr
              sse sse2 syscall mmxext lm 3dnowext 3dnow
    bogomips   : 3774.87

5. # getconf LONG_BIT (Linux View Version Note that CPU currently runs in 32bit mode, but does not mean that CPU does not support 64bit)


[hadoop@admin01 ~]$ getconf LONG_BIT
64

6, # lsb_release-a


[root@Rocky opt]# lsb_release -a
LSB Version:  :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:  CentOS Linux release 7.4.1708 (Core) 
Release:  7.4.1708
Codename:  Cor

Note: The query version information of the sixth one is done on another machine. If you need to use this command to query on the local machine, you need yum to install this command first. In order to show the image, I personally used the command yum install-y redhat-lsb to install one on the cluster. Because there are many downloads, it will take a little longer.


LSB Version:  :base-4.0-amd64:base-4.0-noarch: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: CentOS
Description:  CentOS release 6.4 (Final)
Release:  6.4
Codename:  Final

Related articles: