在linux下边察看版本信息linux发行版有哪些,一般使用的命令是uname
ubuntu系统:
$uname-a
Linuxwanghaifeng-laptop2.6.32-23-generic#37-UbuntuSMPFriJun1107:54:58UTC2010i686GNU/Linux
RedHat系统:
$uname-a
Linuxlocalhost.localdomain2.6.18-194.el5#1SMPTueMar1621:52:43EDT2010i686i686i386GNU/Linux
-a选项表示察看所有的信息linux发行版有哪些,并且从输出信息可以看下来linux视频,uname听到的版本信息linux命令手册,只是内核版本的信息,而不是发行版的版本信息
那我们怎么察看发行版的信息呢?
在RedHat系统里,存在一个/etc/redhat-release文件,上面保存了发行版的版本信息
$cat/etc/redhat-release
RedHatEnterpriseLinuxServerrelease5.5(Tikanga)
哪有没有一个愈发通用的方式呢?那就是/etc/issue文件
issue文件是登陆前的信息和标示文件,上面储存了发行版的版本信息
ubuntu系统:
$cat/etc/issue
Ubuntu10.04.1LTS/n/l
RedHat系统:
$cat/etc/issue
RedHatEnterpriseLinuxServerrelease5.5(Tikanga)
Kernel/ronan/m
这样能够看见实际的发行版版本信息了