Home > System Tutorial > LINUX > How to use the uname command to view version information in Linux systems

How to use the uname command to view version information in Linux systems

WBOY
Release: 2024-07-23 21:14:57
Original
712 people have browsed it

如何在 Linux 系统中使用 uname 命令查看版本信息



Check the version information under linux linux learning forum, the generally used command is uname

ubuntu system:

$uname-a

Linuxwanghaifeng-laptop2.6.32-23-generic#37-UbuntuSMPFriJun1107:54:58UTC2010i686GNU/Linux

怎么看linux发行版_怎么查看linux发行版本_linux查看发行版信息

RedHat system:

$uname-a

Linuxlocalhost.localdomain2.6.18-194.el5#1SMPTueMar1621:52:43EDT2010i686i686i386GNU/Linux

怎么看linux发行版_linux查看发行版信息_怎么查看linux发行版本

-a option means to view all information How to check linux distribution version, and you can see it from the output information How to check linux distribution version, the version information heard by uname is only the kernel version information, not the distribution version Version information

So how do we check the release version information?

In the linux Eden Forum in the RedHat system, there is a /etc/redhat-release file, which saves the version information of the release version

$cat/etc/redhat-release

RedHatEnterpriseLinuxServerrelease5.5(Tikanga)

Is there a more general method? That is the /etc/issue file

The issue file is the information and label file before login, which stores the version information of the release version

ubuntu system:

$cat/etc/issue

Ubuntu10.04.1LTS/n/l

RedHat system:

$cat/etc/issue

RedHatEnterpriseLinuxServerrelease5.5(Tikanga)

Kernel/ronan/m

This way you can see the actual release version information

The above is the detailed content of How to use the uname command to view version information in Linux systems. For more information, please follow other related articles on the PHP Chinese website!

source:itcool.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template