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
RedHat system:
$uname-a
Linuxlocalhost.localdomain2.6.18-194.el5#1SMPTueMar1621:52:43EDT2010i686i686i386GNU/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!