There are three main ways to view the Linux version:
1) Log in to the server and execute lsb_release -a to list all version information, for example:
[[email protected] ~]# lsb_release -a LSB Version: 1.3Distributor ID: RedHatEnterpriseASDescription: Red Hat Enterprise Linux AS release 4 (Nahant Update 1) Release: 4Codename: NahantUpdate1[[email protected] ~ ]#
This command applies to all Linux, including Redhat, SuSE, Debian and other distributions.
2) Log in to linux and execute cat /etc/redhat-release , for example: [[email protected] ~]# cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 1)[[email protected] ~]#
This way you can directly see the specific version number, such as AS4 Update 1
3) Log in to linux to execute rpm -q redhat-release , for example,
[[email protected] ~]# rpm -q redhat-releaseredhat-release-4AS-2.4[[email protected] ~]#
You can see a so-called release number in this way. For example, the above example has a certain correspondence between the release number and the actual version, as follows:
redhat-release- 3AS-1 -> Redhat Enterprise Linux AS 3redhat-release-3AS-7.4 -> Redhat Enterprise Linux AS 3 Update 4redhat-release-4AS-2 -> Redhat Enterprise Linux AS 4redhat-release-4AS-2.4 -> Redhat Enterprise Linux AS 4 Update 1redhat-release-4AS-3 -> Redhat Enterprise Linux AS 4 Update 2redhat-release-4AS-4.1 -> Redhat Enterprise Linux AS 4 Update 3redhat-release-4AS-5. 5 -> Redhat Enterprise Linux AS 4 Update 4
Note: The two methods (2)(3) are only valid for Redhat Linux
The Linux operating system is an open source, free operating system that is not only secure, stable,
you want under Linux How to install the jdk you want under Linux? Last time we talked about how to u
Linux is a derivative of Unix operating system , Linux has built-in tools to view the current proce
redhat-5.4 U disk installation process Preparation: FbinstTool.exe-softwareredhat-5.4-boot.fba-boot
Linux Security - Set up to block the blaster
Linux system how to quickly view the process pid
How to open telnet function in Linux?
Memcache installation under Linux (with libevent installation) Tutorial
Select function implementation principle analysis
RHEL5.4 install nginx-1.0 + php-5.2.17 (fastcgi) + mysql-5.1.40
Linux system learning method entry experience
Webmail Roundcube installation configuration basic tutorial
Centos 6.x configuration based on nginx's wordpress runtime environment
CentOS 6.4 install oracle 11G environment preparation
Linux log server build (rsyslog+loganalyzer)
Linux has gone through 20 years, and the future will be better.
Win7 starts the game with its own method
How to add other national languages under Win10 (default is Simplified Chinese)
How to solve the problem of Windows 7 support for IPv6
CF Singles Day is coming to find the god stick for the gold baton
WinXP install software /driver prompts read pcsc drive error how to solve?
Win10 system cancels the welcome screen.
How to delete the stubborn folder hidden under Win7
Xiaomi mobile phone is stuck in the "restart door" Android system stability into focus
Win7 Ultimate system prompts "Prompt that your password has expired" Solution