。
Two. To view the Linux version:
1) Log in to the server to perform lsb_release-a and list all version information, for example:
[Email Protected]_sys ~]# lsb_release-a
LSB Version:: core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32: Graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor Id:redhatenterpriseas
description:red Hat Enterprise Linux as Release 4 (Nahant Update 4)
Release:4
Codename:nahantupdate4
[[Email Protected]_sys ~]#
Note: A so-called release number can be seen in this way, such as the above example is 5
There is a certain correspondence between the release number and the actual version, as follows:
Redhat-release-3as-1-Redhat Enterprise Linux as 3
redhat-release-3as-7.4-Redhat Enterprise Linux as 3 Update 4
Redhat-release-4as-2-Redhat Enterprise Linux as 4
redhat-release-4as-2.4-Redhat Enterprise Linux as 4 Update 1
Redhat-release-4as-3-Redhat Enterprise Linux as 4 Update 2
redhat-release-4as-4.1-Redhat Enterprise Linux as 4 Update 3
redhat-release-4as-5.5-Redhat Enterprise Linux as 4 Update 4
Another: 3rd), 4) Two methods are only valid for Redhat Linux
5) [[Email Protected]_sys ~]# File/bin/bash
/bin/bash:elf 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for Gnu/linux 2.6.9, dynamically linked (uses shared L IBS), for Gnu/linux 2.6.9, stripped
[[Email Protected]_sys ~]#
6) [[Email Protected]_sys ~]# File/bin/cat
/bin/cat:elf 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for Gnu/linux 2.6.9, dynamically linked (uses shared Li BS), for Gnu/linux 2.6.9, stripped
[[Email Protected]_sys ~]#
View Linux System version commands