How to view version information in Linux

How to view version information in Linux

How to view version information under Linux, including bit number, version information, CPU core information, CPU specific model, etc. The entire CPU information is clear at a glance.

1. # uname -a (Linux view the 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 to view the current operating system version information)

Linux version 2.4.20-8 ([email protected])
 (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 to view the current operating system release information)

Red Hat Linux release 9 (Shrike)

4. # cat /proc/cpuinfo (Linux views 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 (Check the Linux version description. The current CPU is running in 32-bit mode, but it does not mean that the CPU does not support 64-bit)

[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 version information query in the sixth command is done on another machine. If you need to use this command to query on a local machine, you first need to install this command using yum. In order to show it vividly, I personally used the command yum install -y redhat-lsb to install it on the cluster. Because this downloads more packages, 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

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • How to get file version information, company name and product name under Linux in Python
  • Solution to the failure of AES encryption algorithm to decrypt in Linux
  • Perfect solution to the problem of aes decryption failure under Linux operating system
  • How to decrypt Linux version information

<<:  MySQL5.7+ MySQL Workbench installation and configuration method graphic tutorial under MAC

>>:  An article to quickly understand Angular and Ionic life cycle and hook functions

Recommend

Website Building Tutorial for Beginners: Learn to Build a Website in Ten Days

The 10-day tutorial uses the most understandable ...

How to use vue-bootstrap-datetimepicker date plugin in vue-cli 3

Demand Background Recently, I plan to use Vue and...

Sample code for separating the front-end and back-end using FastApi+Vue+LayUI

Table of contents Preface Project Design rear end...

Setting up shadowsocks+polipo global proxy in Linux environment

1. Install shadowsocks sudo apt-get install pytho...

HTML+CSS to achieve drop-down menu

1. Drop-down list example The code is as follows:...

IIS7~IIS8.5 delete or modify the server protocol header Server

Requirements: Remove HTTP response headers in IIS...

Tips for using the docker inspect command

Description and Introduction Docker inspect is a ...

Several implementation methods of the tab bar (recommended)

Tabs: Category + Description Tag bar: Category =&...

Example sharing of anchor tag usage in HTML

Anchor tag usage: Linking to a specific location i...

Let's talk about the two functions of try catch in Javascript

The program is executed sequentially from top to ...

Example code for converting html table data to Json format

The javascript function for converting <table&g...

Each time Docker starts a container, the IP and hosts specified operations

Preface Every time you use Docker to start a Hado...

Detailed explanation of deploying MySQL using Docker (data persistence)

This article briefly describes how to use Docker ...

Pure CSS to implement iOS style open and close selection box function

1 Effect Demo address: https://www.albertyy.com/2...